From de581efedbc53a783a680ff366d37aeccd14ee23 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 4 Oct 2008 19:38:04 -0700 Subject: [PATCH] Fix a potential NULL deref in line 258 found by the IBM checker --- 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.47.3