From 42b3ac10403e425ee90ba8c2e4eb3acd287a1544 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 6 Mar 1991 16:44:39 +0000 Subject: [PATCH] Fixed bug in the options parser;forgot to check for a NULL in a while loop Fixed typo in call to krb5_copy_keyblock git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1867 dc483132-0cff-0310-8789-dd5450dbe970 --- src/slave/kpropd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 6691ddf87..2e41dc58b 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -312,7 +312,7 @@ void PRS(argv) while (word = *argv++) { if (*word == '-') { word++; - while (ch = *word++) { + while (word && (ch = *word++)) { switch(ch){ case 'f': if (*word) @@ -513,7 +513,7 @@ kerberos_authenticate(fd, clientp, sin) free(name); } his_seq_num = authent->seq_number; - krb5_copy_keyblock(ticket->enc_part2->session, session_key); + krb5_copy_keyblock(ticket->enc_part2->session, &session_key); krb5_free_ticket(ticket); krb5_free_authenticator(authent); } -- 2.26.2