]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] scan-build: Null pointer argument in call to string comparison function... 427/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:18:44 +0000 (21:18 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:18:44 +0000 (21:18 +0000)
src/mod/endpoints/mod_verto/mod_verto.c

index f8b297fb8eb48190760a4b829009a4e983456f59..3271c06298aea2f3e1bd35ee262a4fd33a450dc4 100644 (file)
@@ -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;