From 58887b76b059d78c71d708b5ed1415b2e8dc3f3c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 2 Apr 2003 18:57:34 +0000 Subject: [PATCH] Correct number of args to krb5_principal_get_realm() and fix an unclosed comment that hid the bug. --- auth/kerb5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/kerb5.c b/auth/kerb5.c index 81ad50e08..00d3eceee 100644 --- a/auth/kerb5.c +++ b/auth/kerb5.c @@ -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)); /* -- 2.50.1