diff options
author | Stefan Metzmacher <metze@samba.org> | 2015-09-16 12:42:48 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-09-17 06:03:17 +0200 |
commit | b0fa8316beefc7808b059f514448d41224d1c1fb (patch) | |
tree | 343021b4ca1f44ebf34b4abfb5836bbf36f654ae /source3/lib | |
parent | 5866fcc1645366a56e68fc3d8065618131364337 (diff) | |
download | samba-b0fa8316beefc7808b059f514448d41224d1c1fb.tar.gz |
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>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 78ff7217d52..3527b3a4a64 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -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); |