From cf73702697c68556cb5b41944d7646b1d75f3f28 Mon Sep 17 00:00:00 2001 From: Adi Masputra Date: Fri, 28 Jan 2000 01:51:19 +0000 Subject: [PATCH] When 'sync' option is present, the ppp_ahdl module isn't plumbed, so it wouldn't make sense to send down an ioctl belonging to it. --- pppd/sys-svr4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pppd/sys-svr4.c b/pppd/sys-svr4.c index af4b459..036eec6 100644 --- a/pppd/sys-svr4.c +++ b/pppd/sys-svr4.c @@ -25,7 +25,7 @@ * OR MODIFICATIONS. */ -#define RCSID "$Id: sys-svr4.c,v 1.39 2000/01/25 03:25:36 masputra Exp $" +#define RCSID "$Id: sys-svr4.c,v 1.40 2000/01/28 01:51:19 masputra Exp $" #include #include @@ -1426,7 +1426,8 @@ get_ppp_stats(u, stats) { struct ppp_stats s; - if (strioctl(pppfd, PPPIO_GETSTAT, &s, 0, sizeof(s)) < 0) { + if (!sync_serial && + strioctl(pppfd, PPPIO_GETSTAT, &s, 0, sizeof(s)) < 0) { error("Couldn't get link statistics: %m"); return 0; } -- 2.39.2