From d091bdc26456d2a412bf466d45fe5579835c2663 Mon Sep 17 00:00:00 2001 From: kouril Date: Mon, 25 Aug 2003 10:39:03 +0000 Subject: [PATCH] Added correct parameters to ap_strcat() --- src/mod_auth_kerb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index 13419e2..c924b13 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -367,7 +367,8 @@ authenticate_user_krb4pwd(request_rec *r, if (realm == NULL || *realm == '\0') break; - ret = verify_krb4_user(r, (char *)sent_name, sent_instance, + ret = verify_krb4_user(r, (char *)sent_name, + (sent_instance) ? sent_instance : "", (char *)realm, (char *)sent_pw, "khttp", conf->krb_4_srvtab); if (ret == 0) @@ -383,8 +384,8 @@ authenticate_user_krb4pwd(request_rec *r, user = ap_pstrdup(r->pool, sent_name); if (sent_instance) - user = ap_pstrcat(r->pool, ".", sent_instance); - user = ap_pstrcat(r->pool, "@", realm); + user = ap_pstrcat(r->pool, user, ".", sent_instance, NULL); + user = ap_pstrcat(r->pool, user, "@", realm, NULL); MK_USER = user; MK_AUTH_TYPE = "Basic"; -- 2.1.4