diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-03-25 09:53:07 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-03-25 09:53:07 +0000 |
| commit | 728eb83bf2ecbd2074c9987c26e5872fe86901a9 (patch) | |
| tree | ed120510dde2343345d89ef6d712cc1ecf771cd0 | |
| parent | b7a441ca87ca9dcdc51f64fbf8e968541ac40eba (diff) | |
Notes
| -rw-r--r-- | sys/net/if_spppsubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 2e59072fdde5..d4bdcecf8a5b 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -3448,8 +3448,8 @@ sppp_pap_input(struct sppp *sp, struct mbuf *m) sppp_print_string((char*)passwd, passwd_len); log(-1, ">\n"); } - if (name_len > AUTHNAMELEN || - passwd_len > AUTHKEYLEN || + if (name_len != sppp_strnlen(sp->hisauth.name, AUTHNAMELEN) || + passwd_len != sppp_strnlen(sp->hisauth.secret, AUTHKEYLEN) || bcmp(name, sp->hisauth.name, name_len) != 0 || bcmp(passwd, sp->hisauth.secret, passwd_len) != 0) { /* action scn, tld */ |
