Correct server-side chap authentication comparison
(broken with last commit).
This commit is contained in:
parent
35f456775d
commit
10c76ef5a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43743
@ -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.40 1999/02/06 02:54:44 brian Exp $
|
||||
* $Id: chap.c,v 1.41 1999/02/07 13:48:38 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user