]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Improve debug messages for get_kdc_ip_string()
authorAndreas Schneider <asn@samba.org>
Tue, 15 Mar 2022 11:10:47 +0000 (12:10 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Mar 2022 13:28:30 +0000 (13:28 +0000)
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>
source3/libads/kerberos.c

index 1bf149ef09b1a2e3de78ad8f2077ed66b55b5fb3..6a46d72a15662d17878679d783abba7547345138 100644 (file)
@@ -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);