git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb6459
)
s3:utils: Do not segfault on error in DoDNSUpdate()
author
Andreas Schneider
<asn@samba.org>
Thu, 17 May 2018 09:53:18 +0000
(11:53 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 4 Jun 2018 07:55:29 +0000
(09:55 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13440
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit
cdd98aa1e2116fb97e16718d115ee883fe1bc8ba
)
source3/utils/net_dns.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_dns.c
b/source3/utils/net_dns.c
index d972a5d4bad3beb0541f1e544b9fa937eb6716f5..9ee856c00595b34f38c9f29c05df02f1ba481c6a 100644
(file)
--- a/
source3/utils/net_dns.c
+++ b/
source3/utils/net_dns.c
@@
-75,6
+75,7
@@
DNS_ERROR DoDNSUpdate(char *pszServerName,
if (!ERR_DNS_IS_OK(err)) {
DEBUG(3,("DoDNSUpdate: failed to probe DNS\n"));
+ goto error;
}
if ((dns_response_code(resp->flags) == DNS_NO_ERROR) &&