mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
s3:lib/messages: add missing allocation check for priv_path
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11515 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit b0fa8316beefc7808b059f514448d41224d1c1fb)
This commit is contained in:
parent
f003617584
commit
9fdcaed05c
@ -322,6 +322,10 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
priv_path = private_path("sock");
|
||||
if (priv_path == NULL) {
|
||||
TALLOC_FREE(ctx);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ok = directory_create_or_exist_strict(priv_path, sec_initial_uid(),
|
||||
0700);
|
||||
|
Loading…
x
Reference in New Issue
Block a user