Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/pppoectl Make authproto not change when "authproto" is ...



details:   https://anonhg.NetBSD.org/src/rev/7848eaf6ac6d
branches:  trunk
changeset: 983241:7848eaf6ac6d
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue May 11 06:58:03 2021 +0000

description:
Make authproto not change when "authproto" is not in command option

diffstat:

 sbin/pppoectl/pppoectl.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 58fdfd2c106b -r 7848eaf6ac6d sbin/pppoectl/pppoectl.c
--- a/sbin/pppoectl/pppoectl.c  Tue May 11 06:42:42 2021 +0000
+++ b/sbin/pppoectl/pppoectl.c  Tue May 11 06:58:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pppoectl.c,v 1.28 2021/05/11 05:51:42 yamaguchi Exp $  */
+/*     $NetBSD: pppoectl.c,v 1.29 2021/05/11 06:58:03 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 1997 Joerg Wunsch
@@ -31,7 +31,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: pppoectl.c,v 1.28 2021/05/11 05:51:42 yamaguchi Exp $");
+__RCSID("$NetBSD: pppoectl.c,v 1.29 2021/05/11 06:58:03 yamaguchi Exp $");
 #endif
 
 
@@ -203,6 +203,8 @@
 
        memset(&spr, 0, sizeof spr);
        strncpy(spr.ifname, ifname, sizeof spr.ifname);
+       spr.myauth = SPPP_AUTHPROTO_NOCHG;
+       spr.hisauth = SPPP_AUTHPROTO_NOCHG;
        memset(&lcp, 0, sizeof lcp);
        strncpy(lcp.ifname, ifname, sizeof lcp.ifname);
        memset(&ncp, 0, sizeof ncp);



Home | Main Index | Thread Index | Old Index