Skip to content

Commit

Permalink
[parser] parse_min_expires() returns FALSE if hdr no found
Browse files Browse the repository at this point in the history
Alternative to #3165

(cherry picked from commit b3990ad)
  • Loading branch information
bogdan-iancu committed Oct 12, 2023
1 parent b6e75cc commit 4f7a06e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parser/parse_min_expires.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ int parse_min_expires(struct sip_msg *msg)
set_err_reply(400, "bad headers");
return -1;
}
return 0;
}
return 0;
/* no hdr present */
return -1;
}

0 comments on commit 4f7a06e

Please sign in to comment.