diff options
author | 2002-07-30 05:19:29 +0000 | |
---|---|---|
committer | 2002-07-30 05:19:29 +0000 | |
commit | 763c11084e3667c993ecf7aa287e75a20aa9e5a2 (patch) | |
tree | 0c67af92dda3f471ce2d58ffb5aa431b17ebf99a | |
parent | ethernet mac in lower case hex digits (diff) | |
download | net-tools-763c11084e3667c993ecf7aa287e75a20aa9e5a2.tar.gz net-tools-763c11084e3667c993ecf7aa287e75a20aa9e5a2.tar.bz2 net-tools-763c11084e3667c993ecf7aa287e75a20aa9e5a2.zip |
more stable ipx parsing (no segfault anymore)
-rw-r--r-- | lib/ipx.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -133,6 +133,9 @@ static int IPX_input(int type, char *bufp, struct sockaddr *sap) char *ep; int nbo; + if (!sai) + return (-1); + sai->sipx_family = AF_IPX; sai->sipx_network = htonl(0); sai->sipx_node[0] = sai->sipx_node[1] = sai->sipx_node[2] = |