From feb77c978bede01156ae1eb17c73842c7a27cda5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 21 Jan 2008 15:35:09 +0100 Subject: Add another check for talloc failure to libnet_conf Michael (This used to be commit 196e4ce8c5dd5aab518aaa7d170eb1fb5d66bcd1) --- source3/libnet/libnet_conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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); -- cgit