Skip to content

Commit

Permalink
auth: return -1 on error in auth_get_ha1()
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Mar 14, 2020
1 parent d8ec4f3 commit 96fcb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auth/auth_mod.c
Expand Up @@ -393,7 +393,7 @@ static inline int auth_get_ha1(struct sip_msg *msg, struct username* _username,
return 1;
}
} else {
return 1;
return -1;
}
/* get password from PV */
memset(&sval, 0, sizeof(pv_value_t));
Expand All @@ -406,7 +406,7 @@ static inline int auth_get_ha1(struct sip_msg *msg, struct username* _username,
return 1;
}
} else {
return 1;
return -1;
}
if (auth_calc_ha1) {
/* Only plaintext passwords are stored in database,
Expand Down

0 comments on commit 96fcb5f

Please sign in to comment.