Use `krb5_sock_to_principal'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2947 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -75,11 +75,11 @@ krb5_authenticate (POP *p, int s, u_char *buf, struct sockaddr_in *addr)
|
||||
|| memcmp (buf, KRB5_SENDAUTH_VERSION, len) != 0)
|
||||
return -1;
|
||||
|
||||
ret = krb5_sname_to_principal (p->context,
|
||||
p->myhost,
|
||||
"pop",
|
||||
KRB5_NT_SRV_HST,
|
||||
&server);
|
||||
ret = krb5_sock_to_principal (p->context,
|
||||
s,
|
||||
"pop",
|
||||
KRB5_NT_SRV_HST,
|
||||
&server);
|
||||
if (ret) {
|
||||
pop_log (p, POP_FAILURE,
|
||||
"krb5_sname_to_principal: %s",
|
||||
|
Reference in New Issue
Block a user