projects
/
mod_auth_kerb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a01a23
)
Added correct parameters to ap_strcat()
author
kouril
<kouril>
Mon, 25 Aug 2003 10:39:03 +0000
(10:39 +0000)
committer
kouril
<kouril>
Mon, 25 Aug 2003 10:39:03 +0000
(10:39 +0000)
src/mod_auth_kerb.c
patch
|
blob
|
history
diff --git
a/src/mod_auth_kerb.c
b/src/mod_auth_kerb.c
index
13419e2
..
c924b13
100644
(file)
--- 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;
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)
(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_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";
MK_USER = user;
MK_AUTH_TYPE = "Basic";