summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index 1f3d70b..2abf879 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1616,7 +1616,8 @@ NetReceive(volatile uchar *inpkt, int len)
* a fragment, and either the complete packet or NULL if
* it is a fragment (if !CONFIG_IP_DEFRAG, it returns NULL)
*/
- if (!(ip = NetDefragment(ip, &len)))
+ ip = NetDefragment(ip, &len);
+ if (!ip)
return;
/*
* watch for ICMP host redirects