summaryrefslogtreecommitdiff
path: root/lib/ZRecvNot.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZRecvNot.c')
-rw-r--r--lib/ZRecvNot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ZRecvNot.c b/lib/ZRecvNot.c
index 59b9946..e3b14a4 100644
--- a/lib/ZRecvNot.c
+++ b/lib/ZRecvNot.c
@@ -28,10 +28,9 @@ ZReceiveNotice(ZNotice_t *notice,
if ((retval = Z_WaitForComplete()) != ZERR_NONE)
return (retval);
- if (!nextq)
- return (ENOMEM);
-
nextq = Z_GetFirstComplete();
+ if (!nextq)
+ return (ENOMEM);
len = nextq->packet_len;