summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-09-13 10:32:58 +0000
committerbrian <brian@cvs.openbsd.org>2001-09-13 10:32:58 +0000
commita5a11d83728eca790e180f6c51f0fa0f14ef2c37 (patch)
tree8fe1fdd1eff556603b67511f264829dd1cf25173
parent6f59a53aada4d82c128907d2445ad02a7279a9d8 (diff)
Fix some return code checks (FreeBSD only)
-rw-r--r--usr.sbin/ppp/ppp/ether.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ppp/ether.c b/usr.sbin/ppp/ppp/ether.c
index 7197eaedead..00106c6676a 100644
--- a/usr.sbin/ppp/ppp/ether.c
+++ b/usr.sbin/ppp/ppp/ether.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: ether.c,v 1.13 2001/08/19 23:22:17 brian Exp $
+ * $OpenBSD: ether.c,v 1.14 2001/09/13 10:32:57 brian Exp $
*/
#include <sys/param.h>
@@ -230,7 +230,7 @@ ether_MessageIn(struct etherdevice *dev)
if (ret <= 0)
return;
- if (NgRecvMsg(dev->cs, rep, sizeof msgbuf, NULL) < 0)
+ if (NgRecvMsg(dev->cs, rep, sizeof msgbuf, NULL) <= 0)
return;
if (rep->header.version != NG_VERSION) {
@@ -511,7 +511,7 @@ ether_Create(struct physical *p)
/* Get our list back */
resp = (struct ng_mesg *)rbuf;
- if (NgRecvMsg(dev->cs, resp, sizeof rbuf, NULL) < 0) {
+ if (NgRecvMsg(dev->cs, resp, sizeof rbuf, NULL) <= 0) {
log_Printf(LogWARN, "Cannot get netgraph response: %s\n",
strerror(errno));
return ether_Abandon(dev, p);