From: Kurt Zeilenga Date: Wed, 16 Sep 1998 00:01:11 +0000 (+0000) Subject: Resolves UD crash when binding with incorrect passwords. X-Git-Tag: PHP3_TOOL_0_0~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d845ef2215f5aa1134f0684e5234d7ab9673f07;p=openldap Resolves UD crash when binding with incorrect passwords. Fix suggested by Hallvard Furuseth . --- diff --git a/clients/ud/auth.c b/clients/ud/auth.c index 4c191ba2a0..845bffc5a3 100644 --- a/clients/ud/auth.c +++ b/clients/ud/auth.c @@ -429,5 +429,5 @@ char *s; if (bound_dn != NULL) Free(bound_dn); - bound_dn = strdup(s); + bound_dn = (s == NULL) ? NULL : strdup(s); }