From: Ezra Peisach Date: Thu, 27 Apr 1995 12:20:04 +0000 (+0000) Subject: Need to copy the client principal out of ticket before calling krb5_ok on a X-Git-Tag: krb5-1.0-beta5~217 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13b030a5f8bc8ed9ecfcb77cfd60eb1985593b44;p=krb5.git Need to copy the client principal out of ticket before calling krb5_ok on a NULL principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5535 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index f3288005e..394afcb02 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,5 +1,8 @@ Thu Apr 27 01:09:19 1995 Ezra Peisach + * krshd.c (recvauth): extract the client principal from ticket + before calling krb5_kuserok on a NULL principal. + * krcp.c: (main): Missing htons on port number when specified on command line. diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 2b77593a4..287843a38 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -1681,6 +1681,10 @@ recvauth(netf, peersin, peeraddr) &kremuser)) return status; + if (status = krb5_copy_principal(bsd_context, ticket->enc_part2->client, + &client)) + return status; + /* Setup eblock for encrypted sessions. */ krb5_use_keytype(bsd_context, &eblock, ticket->enc_part2->session->keytype); if (status = krb5_process_key(bsd_context, &eblock, ticket->enc_part2->session))