From 87f496f3c1ff5c8fd72bcfb6b4af7cb539d5bc47 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 4 Oct 2008 22:07:14 +0200 Subject: Fix a potential NULL deref in line 258 found by the IBM checker --- source3/libaddns/dnsmarshall.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/libaddns') diff --git a/source3/libaddns/dnsmarshall.c b/source3/libaddns/dnsmarshall.c index 8c3389eb9b..5530290c57 100644 --- a/source3/libaddns/dnsmarshall.c +++ b/source3/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); -- cgit