mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
registry4: Fix CID 1034911 Dereference before null check
curbegin is always != NULL here (curend + 1) and is dereferenced by strchr. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
817e0ae687
commit
f82daa054a
@ -233,7 +233,7 @@ static WERROR local_create_key(TALLOC_CTX *mem_ctx,
|
||||
break;
|
||||
curbegin = curend + 1;
|
||||
curend = strchr(curbegin, '\\');
|
||||
} while (curbegin != NULL && curbegin[0] != '\0');
|
||||
} while (curbegin[0] != '\0');
|
||||
talloc_free(orig);
|
||||
|
||||
*result = reg_import_hive_key(local_parent->global.context, curkey,
|
||||
|
Loading…
x
Reference in New Issue
Block a user