Skip to content

Commit

Permalink
Revert "auth: fix error check"
Browse files Browse the repository at this point in the history
This reverts commit b7772a0.
  • Loading branch information
l2dy committed Mar 14, 2020
1 parent f7efd44 commit d8ec4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auth/auth_mod.c
Expand Up @@ -442,7 +442,7 @@ static inline int pv_authorize(struct sip_msg* msg, str *domain,
cred = (auth_body_t*)h->parsed;

res = auth_get_ha1(msg, &cred->digest.username, domain, ha1);
if (res != 0) {
if (res < 0) {
/* Error */
if (sigb.reply(msg, 500, &auth_500_err, NULL) == -1) {
LM_ERR("failed to send 500 reply\n");
Expand Down

0 comments on commit d8ec4f3

Please sign in to comment.