From 4d845ef2215f5aa1134f0684e5234d7ab9673f07 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 16 Sep 1998 00:01:11 +0000 Subject: [PATCH] Resolves UD crash when binding with incorrect passwords. Fix suggested by Hallvard Furuseth . --- clients/ud/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5