diff options
author | Richard Sharpe <rsharpe@samba.org> | 2016-06-18 13:29:36 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-06-19 10:34:37 +0200 |
commit | 9379a869439585410c4c3f74db2a39eaa36cb523 (patch) | |
tree | 2a674ef71959d7f1f63f66b8748e1d043e9edf8f /source3/utils/net_ads.c | |
parent | 3de3f643a870239a7a410a13065a86053992f7fa (diff) | |
download | samba-9379a869439585410c4c3f74db2a39eaa36cb523.tar.gz |
s3/net: print returned addresses in dns gethostbyname
Make net ads dns gethostbyname actually print out the returned addresses
so we can use it in self tests.
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sun Jun 19 10:34:37 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/utils/net_ads.c')
-rw-r--r-- | source3/utils/net_ads.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index f4c25e1bf17..5feecc911f0 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -1751,9 +1751,10 @@ static int net_ads_dns_gethostbyname(struct net_context *c, int argc, const char } err = do_gethostbyname(argv[0], argv[1]); - - d_printf(_("do_gethostbyname returned %s (%d)\n"), - dns_errstr(err), ERROR_DNS_V(err)); + if (!ERR_DNS_IS_OK(err)) { + d_printf(_("do_gethostbyname returned %s (%d)\n"), + dns_errstr(err), ERROR_DNS_V(err)); + } #endif return 0; } |