s4 dns: Get rid of deprecated allocation result check
authorKai Blin <kai@samba.org>
Sun, 30 Sep 2012 08:44:03 +0000 (10:44 +0200)
committerKai Blin <kai@samba.org>
Sun, 30 Sep 2012 08:44:03 +0000 (10:44 +0200)
source4/dns_server/dns_utils.c

index 11ded6820487af5c450c5763af7d4515a019448d..a364ae68ad3b4d0ed686cea5b3630770ded6d729 100644 (file)
@@ -205,7 +205,9 @@ WERROR dns_lookup_records(struct dns_server *dns,
        }
 
        recs = talloc_zero_array(mem_ctx, struct dnsp_DnssrvRpcRecord, el->num_values);
-       W_ERROR_HAVE_NO_MEMORY(recs);
+       if (recs == NULL) {
+               return WERR_NOMEM;
+       }
        for (ri = 0; ri < el->num_values; ri++) {
                struct ldb_val *v = &el->values[ri];
                enum ndr_err_code ndr_err;