diff options
author | Andreas Schneider <asn@samba.org> | 2022-03-15 12:10:47 +0100 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-03-17 09:14:56 +0000 |
commit | cce13c772f1db5a03e43f083819c458a4a8844c8 (patch) | |
tree | 8f7a69dee1cd99adb0e306532d2efa1da030ca7b | |
parent | 2599f5313bd86b9821ba38dd0b9679b5aaa50acc (diff) | |
download | samba-cce13c772f1db5a03e43f083819c458a4a8844c8.tar.gz |
s3:libads: Improve debug messages for get_kdc_ip_string()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15016
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 7f721dc2eee0064a1ddd480fcaf77bf1659c7a26)
-rw-r--r-- | source3/libads/kerberos.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 1bf149ef09b..6a46d72a156 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -590,7 +590,11 @@ static char *get_kdc_ip_string(char *mem_ctx, result = kdc_str; out: - DBG_DEBUG("Returning\n%s\n", kdc_str); + if (result != NULL) { + DBG_DEBUG("Returning\n%s\n", kdc_str); + } else { + DBG_NOTICE("Failed to get KDC ip address\n"); + } TALLOC_FREE(ip_sa_site); TALLOC_FREE(ip_sa_nonsite); |