]> granicus.if.org Git - libtirpc/commitdiff
print_rpc_gss_sec: Make sure logging to stderr is enabled.
authorSteve Dickson <steved@redhat.com>
Mon, 14 Jul 2014 13:21:11 +0000 (09:21 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 7 Aug 2014 18:41:34 +0000 (14:41 -0400)
It does not make sense to try an covert this routine to
used the new debugging macro. So just insure the correct
debugging level and printing to stderr is enabled.

Signed-off-by: Steve Dickson <steved@redhat.com>
src/auth_gss.c
src/authgss_prot.c

index e636e7e21755e002be074d0d88a211c0ae8a2b9c..d8d5a72f185fe96d887577ea61ff037bc556b4b6 100644 (file)
@@ -88,6 +88,9 @@ print_rpc_gss_sec(struct rpc_gss_sec *ptr)
 int i;
 char *p;
 
+       if (libtirpc_debug_level < 4 || log_stderr == 0)
+               return;
+
        gss_log_debug("rpc_gss_sec:");
        if(ptr->mech == NULL)
                gss_log_debug("NULL gss_OID mech");
index 6dc4af64abb4411f482903193b22f4dce098115d..669eab7c9f4967127cd89818deca6d24888b8735 100644 (file)
@@ -338,7 +338,7 @@ gss_log_hexdump(const u_char *buf, int len, int offset)
        u_int i, j, jm;
        int c;
 
-       if (libtirpc_debug_level < 3 || log_stderr == 0)
+       if (libtirpc_debug_level < 4 || log_stderr == 0)
                return;
 
        fprintf(stderr, "\n");