mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lsa_server: Fix CID 1433608 Dereference after null check
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8b5925b304
commit
9ecc6f3b52
@ -88,7 +88,7 @@ static NTSTATUS dcesrv_lsa_lookup_name(struct lsa_policy_state *state,
|
||||
bool match = false;
|
||||
int ret;
|
||||
|
||||
if (principal == NULL && principal[0] == '\0') {
|
||||
if ((principal == NULL) || (principal[0] == '\0')) {
|
||||
return NT_STATUS_NONE_MAPPED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user