diff options
author | Andreas Schneider <asn@samba.org> | 2018-05-17 11:53:18 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2018-05-17 17:28:28 +0200 |
commit | cdd98aa1e2116fb97e16718d115ee883fe1bc8ba (patch) | |
tree | fdfc3f71c5f663de3115f573bd9c50e070d3d185 /source3/utils/net_dns.c | |
parent | 83bde8a49cf3015c71302fbd209f95006e7535b2 (diff) | |
download | samba-cdd98aa1e2116fb97e16718d115ee883fe1bc8ba.tar.gz |
s3:utils: Do not segfault on error in DoDNSUpdate()
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>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu May 17 17:28:28 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3/utils/net_dns.c')
-rw-r--r-- | source3/utils/net_dns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index d972a5d4bad..9ee856c0059 100644 --- 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) && |