Skip to content

Commit

Permalink
Allow 100 response code in sipsess_accept
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed Jul 24, 2024
1 parent 26f87a7 commit 4810e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sipsess/accept.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int sipsess_accept(struct sipsess **sessp, struct sipsess_sock *sock,
va_list ap;
int err;

if (!sessp || !sock || !msg || scode < 101 || scode > 299 ||
if (!sessp || !sock || !msg || scode < 100 || scode > 299 ||
!cuser || !ctype)
return EINVAL;

Expand Down Expand Up @@ -104,7 +104,7 @@ int sipsess_accept(struct sipsess **sessp, struct sipsess_sock *sock,

va_start(ap, fmt);

if (scode > 100 && scode < 200) {
if (scode >= 100 && scode < 200) {
err = sipsess_reply_1xx(sess, msg, scode, reason, rel100, desc,
fmt, &ap);
}
Expand Down

0 comments on commit 4810e6b

Please sign in to comment.