1 diff --git a/vncviewer/zlib.c b/vncviewer/zlib.c
2 index 80c4eee..76998d8 100644
5 @@ -55,6 +55,11 @@ HandleZlibBPP (int rx, int ry, int rw, int rh)
6 raw_buffer_size = (( rw * rh ) * ( BPP / 8 ));
7 raw_buffer = (char*) malloc( raw_buffer_size );
9 + if ( raw_buffer == NULL ) {
11 + "couldn't allocate raw_buffer in HandleZlibBPP");
16 if (!ReadFromRFBServer((char *)&hdr, sz_rfbZlibHeader))