From 102f7387cbfcb5d19d3f2e2ac7a2ed124ce6fad9 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Tue, 7 Jul 2015 18:32:43 +0200 Subject: [PATCH] plugins/tuntap: add missing return on error Reported by Coverity as CID #1308282 --- plugins/tuntap/firewall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tuntap/firewall.c b/plugins/tuntap/firewall.c index f2666ef1..f9351dc4 100644 --- a/plugins/tuntap/firewall.c +++ b/plugins/tuntap/firewall.c @@ -189,6 +189,7 @@ void uwsgi_tuntap_opt_firewall(char *opt, char *value, void *direction) { char *space2 = strchr(space + 1, ' '); if (!space2) { uwsgi_log("invalid tuntap firewall rule syntax. must be "); + return; } *space2 = 0;