summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2014-05-28 16:14:19 +0000
committeryasuoka <yasuoka@openbsd.org>2014-05-28 16:14:19 +0000
commiteab1a1a95b05e582d0277b35449b62b9232f8b10 (patch)
tree080c0f299d9b50c74743516fe0fcbe69d26e8d66
parentdocument that posix defaults to -L if no options are given, and tweak previous; (diff)
downloadwireguard-openbsd-eab1a1a95b05e582d0277b35449b62b9232f8b10.tar.xz
wireguard-openbsd-eab1a1a95b05e582d0277b35449b62b9232f8b10.zip
Fixed chap_input() and chap_authenticate() not to be used as if they
return a value. Since they are void function. pointed out daniel, ok daniel
-rw-r--r--usr.sbin/npppd/npppd/chap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/npppd/npppd/chap.c b/usr.sbin/npppd/npppd/chap.c
index 8c6d4509f2c..82d291cd927 100644
--- a/usr.sbin/npppd/npppd/chap.c
+++ b/usr.sbin/npppd/npppd/chap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chap.c,v 1.10 2013/09/20 07:29:19 yasuoka Exp $ */
+/* $OpenBSD: chap.c,v 1.11 2014/05/28 16:14:19 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -36,7 +36,7 @@
* </ul></p>
*/
/* RFC 1994, 2433 */
-/* $Id: chap.c,v 1.10 2013/09/20 07:29:19 yasuoka Exp $ */
+/* $Id: chap.c,v 1.11 2014/05/28 16:14:19 yasuoka Exp $ */
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
@@ -344,7 +344,7 @@ chap_input(chap *_this, u_char *pktp, int len)
_this->state = CHAP_STATE_AUTHENTICATING;
strlcpy(_this->name, name, sizeof(_this->name));
- return chap_authenticate(_this, val, lval);
+ chap_authenticate(_this, val, lval);
}
static void