projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14aa3fa
)
Set 'bits.close' in case of malloc fail.
author
Gisle Vanem
<gvanem@broadpark.no>
Wed, 9 Feb 2005 14:28:35 +0000
(14:28 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Wed, 9 Feb 2005 14:28:35 +0000
(14:28 +0000)
Don't free 'lud_dn' twice in case curl_unescape()
fails.
lib/ldap.c
patch
|
blob
|
history
diff --git
a/lib/ldap.c
b/lib/ldap.c
index
3afa813
..
15c19b3
100644
(file)
--- a/
lib/ldap.c
+++ b/
lib/ldap.c
@@
-380,6
+380,7
@@
quit:
/* no data to transfer */
Curl_Transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
+ conn->bits.close = TRUE;
return status;
}
@@
-474,9
+475,9
@@
static bool unescape_elements (LDAPURLDesc *ludp)
char *new_dn = curl_unescape(dn, 0);
free(dn);
+ ludp->lud_dn = new_dn;
if (!new_dn)
return (FALSE);
- ludp->lud_dn = new_dn;
}
return (TRUE);
}