From 40bfbc0a44fcf94f3b7c7fd339b3c95ac551d44c Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sat, 2 Nov 2013 16:33:48 +0100 Subject: [PATCH] plugins/pty: Fix a couple of memory issues Rpoerted by Coverity as CID #1125163 and #1125162 --- plugins/pty/pty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pty/pty.c b/plugins/pty/pty.c index 9cae5b21..dfe68239 100644 --- a/plugins/pty/pty.c +++ b/plugins/pty/pty.c @@ -149,6 +149,7 @@ static void *uwsgi_pty_loop(void *arg) { if (rlen == 0) exit(1); if (rlen < 0) { uwsgi_error("uwsgi_pty_loop()/read()"); + continue; } if (upty.log && upty.original_log >= 0) { if (write(upty.original_log, buf, rlen) != rlen) {