mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 06:06:08 +00:00
plugins/pty: Fix a couple of memory issues
Rpoerted by Coverity as CID #1125163 and #1125162
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user