From f07c3e6c06c9b2bd7989ce0d6806ea42cd5a68a9 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 5 Oct 1998 21:02:30 +0000 Subject: [PATCH] Fix a =/== confusion that caused the CHAP type renegotiation to completely fail. Obtained from: The isdn4bsd project (original author unknown right now) --- sys/net/if_spppsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 8b862c3dafd3..d786be4791ff 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -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;