git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5866fcc
)
s3:lib/messages: add missing allocation check for priv_path
author
Stefan Metzmacher
<metze@samba.org>
Wed, 16 Sep 2015 10:42:48 +0000
(12:42 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 17 Sep 2015 04:03:17 +0000
(06:03 +0200)
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>
source3/lib/messages.c
patch
|
blob
|
history
diff --git
a/source3/lib/messages.c
b/source3/lib/messages.c
index 78ff7217d5252dd92efedf88e30f6e9d090b9c87..3527b3a4a640b374b863cbdcbd3510ac2bfe0631 100644
(file)
--- 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);