--- 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)))