Skip to content

Commit d8ec4f3

Browse files
committed
Revert "auth: fix error check"
This reverts commit b7772a0.
1 parent f7efd44 commit d8ec4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auth/auth_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static inline int pv_authorize(struct sip_msg* msg, str *domain,
442442
cred = (auth_body_t*)h->parsed;
443443

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

0 commit comments

Comments
 (0)