git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0a9f5
)
s4 dns: Get rid of deprecated allocation result check
author
Kai Blin
<kai@samba.org>
Sun, 30 Sep 2012 08:44:03 +0000
(10:44 +0200)
committer
Kai Blin
<kai@samba.org>
Sun, 30 Sep 2012 08:44:03 +0000
(10:44 +0200)
source4/dns_server/dns_utils.c
patch
|
blob
|
history
diff --git
a/source4/dns_server/dns_utils.c
b/source4/dns_server/dns_utils.c
index 11ded6820487af5c450c5763af7d4515a019448d..a364ae68ad3b4d0ed686cea5b3630770ded6d729 100644
(file)
--- 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;