From: Howard Chu Date: Sun, 12 May 2002 18:42:43 +0000 (+0000) Subject: Check for NULL before comparing authcid X-Git-Tag: OPENLDAP_REL_ENG_2_MP~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d94a2016c190f2a34090a5103eca13897ddf60e;p=openldap Check for NULL before comparing authcid --- 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; }