mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Check for NULL before comparing authcid
This commit is contained in:
parent
d7060d19f3
commit
2d94a2016c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user