Fix a =/== confusion that caused the CHAP type renegotiation to

completely fail.

Obtained from:	The isdn4bsd project (original author unknown right now)
This commit is contained in:
Joerg Wunsch 1998-10-05 21:02:30 +00:00
parent 09c7ea1cc8
commit f07c3e6c06
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39981

View file

@ -17,7 +17,7 @@
*
* From: Version 2.4, Thu Apr 30 17:17:21 MSD 1997
*
* $Id: if_spppsubr.c,v 1.41 1998/08/15 21:58:09 bde Exp $
* $Id: if_spppsubr.c,v 1.42 1998/08/17 00:29:34 bde Exp $
*/
#include "opt_inet.h"
@ -1979,7 +1979,7 @@ sppp_lcp_RCR(struct sppp *sp, struct lcp_header *h, int len)
if (authproto == PPP_CHAP && p[4] != CHAP_MD5) {
if (debug)
addlog("[chap not MD5] ");
p[4] == CHAP_MD5;
p[4] = CHAP_MD5;
break;
}
continue;