Skip to content

Commit

Permalink
Performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed May 20, 2024
1 parent ee41089 commit 339e54c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ static bool have_essential_fields(const struct sip_msg *msg)
pl_isset(&(msg->from.auri)) &&
pl_isset(&(msg->cseq.met)) &&
pl_isset(&(msg->callid)) &&
(pl_isset(&(msg->maxfwd)) || !pl_strcmp(&msg->met, "ACK")) &&
(pl_isset(&(msg->maxfwd)) ||
!pl_strncmp(&msg->met, "ACK", 3)) &&
pl_isset(&(msg->via.branch)))
return true;

Expand Down

0 comments on commit 339e54c

Please sign in to comment.