aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRoman Kurakin <rik@FreeBSD.org>2004-05-25 21:54:07 +0000
committerRoman Kurakin <rik@FreeBSD.org>2004-05-25 21:54:07 +0000
commit9105841d31749c206680e8045c443c25121535c6 (patch)
treecefb58670188cf1258ffce45e56f44f08e9e9584 /sys/net
parente27d19134875d1a5a10ce7b38279dd8e8b8a4186 (diff)
Notes
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_spppsubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 776bbdd5c58ff..83fb1fc9cb24d 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -961,7 +961,7 @@ sppp_attach(struct ifnet *ifp)
struct sppp *sp = (struct sppp*) ifp;
/* Initialize keepalive handler. */
- if (spppq != NULL)
+ if (spppq == NULL)
TIMEOUT(sppp_keepalive, 0, hz * 10, keepalive_ch);
/* Insert new entry into the keepalive list. */
@@ -1020,7 +1020,7 @@ sppp_detach(struct ifnet *ifp)
}
/* Stop keepalive handler. */
- if (spppq != NULL)
+ if (spppq == NULL)
UNTIMEOUT(sppp_keepalive, 0, keepalive_ch);
for (i = 0; i < IDX_COUNT; i++)