[mod_verto] scan-build: fix false-positive Argument with 'nonnull' attribute passed null in check_auth

This commit is contained in:
Andrey Volk 2021-10-19 03:03:55 +03:00
parent b9fdf00f6f
commit 3f958d3724
1 changed files with 1 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ static switch_bool_t check_auth(jsock_t *jsock, cJSON *params, int *code, char *
}
if (zstr(use_passwd) || strcmp(a1_hash ? a1_hash : passwd, use_passwd)) {
if (!use_passwd || zstr(use_passwd) || strcmp(a1_hash ? a1_hash : passwd, use_passwd)) {
r = SWITCH_FALSE;
*code = CODE_AUTH_FAILED;
switch_snprintf(message, mlen, "Authentication Failure");