diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-01-03 17:45:51 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-01-03 18:46:32 +0000 |
commit | 23bb0541294b746ab6c36baf7093dfc3c61b6d56 (patch) | |
tree | 36135d908e9f37193340875d68d1959d53d4c614 /lib | |
parent | d4b540f85a7f43d089e7c07f915f8a2fea3c494e (diff) |
ldap: Prefer 'CURLcode result' for curl result codes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index e6f975a1c..513b4a8b0 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -459,17 +459,17 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) if((attr_len > 7) && (strcmp(";binary", (char *) attribute + (attr_len - 7)) == 0)) { /* Binary attribute, encode to base64. */ - CURLcode error = Curl_base64_encode(data, - vals[i]->bv_val, - vals[i]->bv_len, - &val_b64, - &val_b64_sz); - if(error) { + result = Curl_base64_encode(data, + vals[i]->bv_val, + vals[i]->bv_len, + &val_b64, + &val_b64_sz); + if(result) { ldap_value_free_len(vals); ldap_memfree(attribute); if(ber) ber_free(ber, 0); - result = error; + goto quit; } |