aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/openldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/openldap.c b/lib/openldap.c
index 4d5db4a51..ee4915f66 100644
--- a/lib/openldap.c
+++ b/lib/openldap.c
@@ -499,6 +499,8 @@ static ssize_t ldap_recv(struct connectdata *conn, int sockindex, char *buf,
if (bv.bv_len > 7 && !strncmp(bv.bv_val + bv.bv_len - 7, ";binary", 7))
binary = 1;
+ else
+ binary = 0;
for (i=0; bvals[i].bv_val != NULL; i++) {
int binval = 0;