diff src/protocols/zephyr/ZRecvNot.c @ 10690:5c6326fe4190

[gaim-migrate @ 12241] Zephyr fixes from Derrick J Brashear committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 13 Mar 2005 23:30:33 +0000
parents 43d6c08d7e96
children 64895571248f
line wrap: on
line diff
--- a/src/protocols/zephyr/ZRecvNot.c	Sun Mar 13 14:23:10 2005 +0000
+++ b/src/protocols/zephyr/ZRecvNot.c	Sun Mar 13 23:30:33 2005 +0000
@@ -4,7 +4,7 @@
  *	Created by:	Robert French
  *
  *	$Source$
- *	$Author: chipx86 $
+ *	$Author: seanegan $
  *
  *	Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.
  *	For copying and distribution information, see the file
@@ -32,6 +32,9 @@
 
     nextq = Z_GetFirstComplete();
 
+    if (!nextq)
+	    return (ENOMEM);
+
     len = nextq->packet_len;
     
     if (!(buffer = (char *) malloc((unsigned) len)))