git.samba.org
/
mat
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3 libaddns: Prevent a crash when dns_create_update fails
[mat/samba.git]
/
lib
/
addns
/
dnsrecord.c
diff --git
a/lib/addns/dnsrecord.c
b/lib/addns/dnsrecord.c
index 045fd465da80cec42cc191fffe295dbf4d3266ae..de70bca214e812b2bbd713d678c21e3a2bccd831 100644
(file)
--- a/
lib/addns/dnsrecord.c
+++ b/
lib/addns/dnsrecord.c
@@
-377,7
+377,7
@@
DNS_ERROR dns_create_probe(TALLOC_CTX *mem_ctx, const char *zone,
uint16 i;
err = dns_create_update(mem_ctx, zone, &req);
- if (!ERR_DNS_IS_OK(err))
goto erro
r;
+ if (!ERR_DNS_IS_OK(err))
return er
r;
err = dns_create_name_not_in_use_record(req, host, QTYPE_CNAME, &rec);
if (!ERR_DNS_IS_OK(err)) goto error;