Skip to content

Commit

Permalink
Plugins: FastCGI: do not assume 'buf' can be null (CID 1312110)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <eduardo@monkey.io>
  • Loading branch information
edsiper committed Jul 23, 2015
1 parent 8568589 commit f05a8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fastcgi/fcgi_handler.c
Expand Up @@ -428,7 +428,7 @@ static int fcgi_response(struct fcgi_handler *handler, char *buf, size_t len)
handler->headers_set = MK_TRUE;
}

if (p && len <= 0) {
if (len <= 0) {
return 0;
}

Expand Down

0 comments on commit f05a8c4

Please sign in to comment.