diff options
author | Kai Blin <kai@samba.org> | 2012-09-30 10:44:03 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-09-30 10:44:03 +0200 |
commit | ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40 (patch) | |
tree | 34df0b534df7121c5255442b191780b7f2109f93 /source4 | |
parent | 7d0a9f5a06c807855335b9553a15ba312a7562ff (diff) | |
download | samba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.tar.gz samba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.tar.bz2 samba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.zip |
s4 dns: Get rid of deprecated allocation result check
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dns_server/dns_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dns_server/dns_utils.c b/source4/dns_server/dns_utils.c index 11ded68204..a364ae68ad 100644 --- a/source4/dns_server/dns_utils.c +++ b/source4/dns_server/dns_utils.c @@ -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; |