1
0
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:
Volker Lendecke 2018-03-27 17:03:15 -05:00 committed by Jeremy Allison
parent 8b5925b304
commit 9ecc6f3b52

View File

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