summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-21 15:35:09 +0100
committerMichael Adam <obnox@samba.org>2008-01-21 22:49:45 +0100
commitfeb77c978bede01156ae1eb17c73842c7a27cda5 (patch)
tree25eb65545b8ab33034d0dd5698ac236fb0af9a9a
parentc5c38d622754c5b06716cbae41a27af711d22bcf (diff)
downloadsamba-feb77c978bede01156ae1eb17c73842c7a27cda5.tar.gz
samba-feb77c978bede01156ae1eb17c73842c7a27cda5.tar.bz2
samba-feb77c978bede01156ae1eb17c73842c7a27cda5.zip
Add another check for talloc failure to libnet_conf
Michael (This used to be commit 196e4ce8c5dd5aab518aaa7d170eb1fb5d66bcd1)
-rw-r--r--source3/libnet/libnet_conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index fc797bbeb9..4d998acad8 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -138,6 +138,10 @@ static WERROR libnet_conf_reg_open_service_key(TALLOC_CTX *mem_ctx,
}
path = talloc_asprintf(mem_ctx, "%s\\%s", KEY_SMBCONF, servicename);
+ if (path == NULL) {
+ werr = WERR_NOMEM;
+ goto done;
+ }
werr = libnet_conf_reg_open_path(mem_ctx, ctx, path, desired_access,
key);