From 6290c2f8647131df0f00d6d9d8fdcb3f73cbe2f2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 4 Oct 2008 19:34:42 -0700 Subject: [PATCH] Fix a potential NULL deref in line 258 found by the IBM checker (cherry picked from commit d1c213b23649172ed684a22d3095f5ac95685dac) --- source/libaddns/dnsmarshall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libaddns/dnsmarshall.c b/source/libaddns/dnsmarshall.c index 8c3389eb9b6..5530290c57a 100644 --- a/source/libaddns/dnsmarshall.c +++ b/source/libaddns/dnsmarshall.c @@ -252,6 +252,7 @@ void dns_unmarshall_domain_name(TALLOC_CTX *mem_ctx, if (!(name = talloc(mem_ctx, struct dns_domain_name))) { buf->error = ERROR_DNS_NO_MEMORY; + return; } dns_unmarshall_label(name, 0, buf, &name->pLabelList); -- 2.11.4.GIT