From 2d94a2016c190f2a34090a5103eca13897ddf60e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 12 May 2002 18:42:43 +0000 Subject: [PATCH] Check for NULL before comparing authcid --- servers/slapd/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 5f9fa2c6f2..36d8b48c5c 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -541,7 +541,7 @@ slap_sasl_canonicalize( sasl_out_params_t dummy; int offset = (void *)&dummy.ulen - (void *)&dummy.authid; char **authid = (void *)out_len - offset; - if ( !strcmp( in, *authid ) ) + if ( *authid && !strcmp( in, *authid ) ) goto done; } -- 2.39.5