Skip to content

Commit 96fcb5f

Browse files
committed
auth: return -1 on error in auth_get_ha1()
1 parent d8ec4f3 commit 96fcb5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auth/auth_mod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static inline int auth_get_ha1(struct sip_msg *msg, struct username* _username,
393393
return 1;
394394
}
395395
} else {
396-
return 1;
396+
return -1;
397397
}
398398
/* get password from PV */
399399
memset(&sval, 0, sizeof(pv_value_t));
@@ -406,7 +406,7 @@ static inline int auth_get_ha1(struct sip_msg *msg, struct username* _username,
406406
return 1;
407407
}
408408
} else {
409-
return 1;
409+
return -1;
410410
}
411411
if (auth_calc_ha1) {
412412
/* Only plaintext passwords are stored in database,

0 commit comments

Comments
 (0)