Better error checking.

This commit is contained in:
eivind 1998-12-08 20:41:05 +00:00
parent c4f0cd91df
commit 80e25474db

View File

@ -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 */