Check for NULL before comparing authcid

This commit is contained in:
Howard Chu 2002-05-12 18:42:43 +00:00
parent d7060d19f3
commit 2d94a2016c

View File

@ -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;
}