summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-09-30 10:44:03 +0200
committerKai Blin <kai@samba.org>2012-09-30 10:44:03 +0200
commitecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40 (patch)
tree34df0b534df7121c5255442b191780b7f2109f93
parent7d0a9f5a06c807855335b9553a15ba312a7562ff (diff)
downloadsamba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.tar.gz
samba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.tar.bz2
samba-ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40.zip
s4 dns: Get rid of deprecated allocation result check
-rw-r--r--source4/dns_server/dns_utils.c4
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;