Merge pull request #427 from dragos-oancea/mod_verto-nullptr-arg

[mod_verto] scan-build: Null pointer argument in call to string comparison function - http_run()
This commit is contained in:
Andrey Volk 2020-02-26 23:45:09 +04:00 committed by GitHub
commit 0359a36a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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;