Fix a potential NULL deref in line 258 found by the IBM checker
authorVolker Lendecke <vl@samba.org>
Sat, 4 Oct 2008 20:07:14 +0000 (22:07 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 4 Oct 2008 20:07:14 +0000 (22:07 +0200)
source3/libaddns/dnsmarshall.c

index 8c3389eb9b6a65ba1c37c78bee79ad6bb7ef022d..5530290c57a5126c06d1ee456d78e846336de217 100644 (file)
@@ -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);