diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-08-03 20:21:36 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-08-03 20:21:36 +0000 |
commit | 233b7d899795153a923dd03d7596ab20a0411bf3 (patch) | |
tree | dda0675f509292a311eadcb140c16ddfb68fa79b | |
parent | e3b7fecda43a80b15c168c59ab216108d4f7a0db (diff) |
fd == 0 is perfectly valid (and likely); spotted by Steve Williams <steve@genie96.com>
-rw-r--r-- | usr.sbin/pppoe/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppoe/client.c b/usr.sbin/pppoe/client.c index fcaa0ed4a70..46e91e9456b 100644 --- a/usr.sbin/pppoe/client.c +++ b/usr.sbin/pppoe/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.3 2000/06/20 04:57:47 jason Exp $ */ +/* $OpenBSD: client.c,v 1.4 2000/08/03 20:21:35 jason Exp $ */ /* * Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net @@ -372,7 +372,7 @@ getpackets(bfd, srv, sysname, myea, rmea) goto next; if (bcmp(rmea, &eh.ether_shost[0], ETHER_ADDR_LEN)) goto next; - if (pppfd <= 0) + if (pppfd < 0) goto next; if (bpf_to_ppp(pppfd, len, mpkt) <= 0) return (-1); |