From: Volker Lendecke Date: Sun, 5 Oct 2008 02:38:04 +0000 (-0700) Subject: Fix a potential NULL deref in line 258 found by the IBM checker X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de581efedbc53a783a680ff366d37aeccd14ee23;p=thirdparty%2Fsamba.git Fix a potential NULL deref in line 258 found by the IBM checker --- 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);