]> granicus.if.org Git - sudo/commitdiff
Correct number of args to krb5_principal_get_realm() and fix an unclosed
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Apr 2003 18:57:34 +0000 (18:57 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 2 Apr 2003 18:57:34 +0000 (18:57 +0000)
comment that hid the bug.

auth/kerb5.c

index 81ad50e08a2a92ba4111e3223e4203e702c61ec7..00d3eceee75903eb91b9882ecac79a2a5bd5de35 100644 (file)
@@ -266,8 +266,8 @@ verify_krb_v5_tgt(sudo_context, ccache, auth_name)
        return(-1);
     }
 
-    /* Extract the name directly. 
-    strlcpy(phost, krb5_principal_get_realm(sudo_context, princ, 1),
+    /* Extract the name directly. */
+    strlcpy(phost, krb5_principal_get_realm(sudo_context, princ),
            sizeof(phost));
 
     /*