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