]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth: Avoid a DEBUGADD in kerberos_decode_pac()
authorVolker Lendecke <vl@samba.org>
Tue, 3 Feb 2026 17:47:34 +0000 (18:47 +0100)
committerAnoop C S <anoopcs@samba.org>
Sun, 15 Feb 2026 10:42:34 +0000 (10:42 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
auth/kerberos/kerberos_pac.c

index ef1c0fa484ccfd4de060ed43764ebd73a6b26d5b..37031ba43fdd541d3182cc7c0a6737ed97a6b23e 100644 (file)
@@ -414,14 +414,13 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
                 logon_info->info3.base.account_name.string,
                 logon_info->info3.base.full_name.string));
 
-       DEBUG(10,("Successfully validated Kerberos PAC\n"));
-
        if (DEBUGLEVEL >= 10) {
-               const char *s;
-               s = NDR_PRINT_STRUCT_STRING(tmp_ctx, PAC_DATA, pac_data);
-               if (s) {
-                       DEBUGADD(10,("%s\n", s));
-               }
+               const char *s = NDR_PRINT_STRUCT_STRING(
+                       tmp_ctx, PAC_DATA, pac_data);
+
+               DEBUG(10,("Successfully validated Kerberos PAC\n%s%c",
+                         s != NULL ? s : "",
+                         s != NULL ? '\n' : '\0'));
        }
 
        if (pac_data_out) {