diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/ppp/chap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/chap.c b/usr.sbin/ppp/ppp/chap.c index 5edc2bccf0e..ffb204b2563 100644 --- a/usr.sbin/ppp/ppp/chap.c +++ b/usr.sbin/ppp/ppp/chap.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.c,v 1.3 1999/02/07 13:48:33 brian Exp $ + * $Id: chap.c,v 1.4 1999/02/07 13:56:19 brian Exp $ * * TODO: */ @@ -367,7 +367,7 @@ chap_Input(struct physical *p, struct mbuf *bp) if (myans == NULL) key = NULL; else { - if (memcmp(myans, ans, 1 + *myans)) + if (*myans != alen || memcmp(myans + 1, ans + 1, *myans)) key = NULL; free(myans); } |