]> git.sur5r.net Git - openldap/commitdiff
Resolves UD crash when binding with incorrect passwords.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 00:01:11 +0000 (00:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 00:01:11 +0000 (00:01 +0000)
Fix suggested by Hallvard Furuseth <h.b.furuseth@usit.uio.no>.

clients/ud/auth.c

index 4c191ba2a083494c89ae3b384c165780b58007c6..845bffc5a37390d73bf255eec5e8ec4de6365462 100644 (file)
@@ -429,5 +429,5 @@ char *s;
 
        if (bound_dn != NULL)
                Free(bound_dn);
-       bound_dn = strdup(s);
+       bound_dn = (s == NULL) ? NULL : strdup(s);
 }