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.

(cherry picked from commit d8ec4f3)
(cherry picked from commit 72a3f08)
  • Loading branch information
l2dy authored and liviuchircu committed Mar 16, 2020
1 parent 932fa3e commit eae7bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auth/auth_mod.c
Expand Up @@ -443,7 +443,7 @@ static inline int pv_authorize(struct sip_msg* msg, gparam_p realm,
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 eae7bf9

Please sign in to comment.