From: Dragos Oancea Date: Tue, 25 Feb 2020 21:18:44 +0000 (+0000) Subject: [mod_verto] scan-build: Null pointer argument in call to string comparison function... X-Git-Tag: v1.10.3^2~114^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F427%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_verto] scan-build: Null pointer argument in call to string comparison function - http_run() --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index f8b297fb8e..3271c06298 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -1722,7 +1722,7 @@ new_req: *auth_pass++ = '\0'; } - if (vhost->auth_user && vhost->auth_pass && + if (vhost->auth_user && vhost->auth_pass && auth_pass && !strcmp(vhost->auth_user, auth_user) && !strcmp(vhost->auth_pass, auth_pass)) { goto authed;