Resolves UD crash when binding with incorrect passwords.

Fix suggested by Hallvard Furuseth <h.b.furuseth@usit.uio.no>.
This commit is contained in:
Kurt Zeilenga 1998-09-16 00:01:11 +00:00
parent 32bae0e72d
commit 4d845ef221

View 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);
}