git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4-dns: dlz_bind9: Check result to avoid segfault
[metze/samba/wip.git]
/
source4
/
dns_server
/
dlz_bind9.c
diff --git
a/source4/dns_server/dlz_bind9.c
b/source4/dns_server/dlz_bind9.c
index 689ed45bb0a0991012d9ec4686694c2a28aedcfc..ac41dd02aa534d001d9a192a88dc15346b6121f3 100644
(file)
--- a/
source4/dns_server/dlz_bind9.c
+++ b/
source4/dns_server/dlz_bind9.c
@@
-825,7
+825,7
@@
static isc_result_t dlz_lookup_types(struct dlz_bind9_data *state,
break;
}
}
- if (ret != LDB_SUCCESS) {
+ if (ret != LDB_SUCCESS
|| res->count == 0
) {
talloc_free(tmp_ctx);
return ISC_R_NOTFOUND;
}