core/subscription: fix wrong check in uwsgi_subscribe2

It looks like both s2_server and s2_key are mandatory in
uwsgi_send_subscription so fail if any of them is missing not both.

Reported by coverity as CID #989245.
This commit is contained in:
Riccardo Magliocchetti
2013-03-03 18:56:46 +01:00
parent 133dff6b76
commit eae00a5c77
+1 -1
View File
@@ -767,7 +767,7 @@ void uwsgi_subscribe2(char *arg, uint8_t cmd) {
return;
}
if (!s2_server && !s2_key) goto end;
if (!s2_server || !s2_key) goto end;
if (s2_check) {
if (uwsgi_file_exists(s2_check)) goto end;