diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-08 20:41:05 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-08 20:41:05 +0000 |
commit | 80e25474dbac23ca21683a91ee989a5db243b32b (patch) | |
tree | 6be686f57dc922ddfebac10d148afdb575fc3f42 /sys/netipx | |
parent | c4f0cd91dfd075657106a1cf7a6b6e0b3a1712f9 (diff) | |
download | FreeBSD-src-80e25474dbac23ca21683a91ee989a5db243b32b.zip FreeBSD-src-80e25474dbac23ca21683a91ee989a5db243b32b.tar.gz |
Better error checking.
Diffstat (limited to 'sys/netipx')
-rw-r--r-- | sys/netipx/ipx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/ipx.c b/sys/netipx/ipx.c index 752c2dc..11bfd90 100644 --- a/sys/netipx/ipx.c +++ b/sys/netipx/ipx.c @@ -33,7 +33,7 @@ * * @(#)ipx.c * - * $Id: ipx.c,v 1.12 1998/06/07 17:12:18 dfr Exp $ + * $Id: ipx.c,v 1.13 1998/12/04 22:54:54 archie Exp $ */ #include <sys/param.h> @@ -122,7 +122,7 @@ ipx_control(so, cmd, data, ifp, p) ifra->ifra_addr.sipx_addr)) break; } - if (cmd == SIOCDIFADDR && ia == NULL) + if (ia == NULL) return (EADDRNOTAVAIL); /* FALLTHROUGH */ |