mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user