[asterisk-dev] [Code Review] Don't overwrite non-REGISTER initial request with incoming REGISTER
Terry Wilson
reviewboard at asterisk.org
Wed Dec 8 23:46:13 UTC 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1050/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
If a REGISTER request is sent in the middle of an existing non-REGISTER transaction, copy_req() overwrites p->initreq with the incoming REGISTER request instead of ignoring the invalid request. This patch ignores non-initial REGISTER requests when initreq.method != REGISTER.
Diffs
-----
/branches/1.4/channels/chan_sip.c 294820
Diff: https://reviewboard.asterisk.org/r/1050/diff
Testing
-------
Tested with sipp that the REGISTER is ignored when it should be, and that normal REGISTERs still work.
Thanks,
Terry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101208/c9a2a913/attachment.htm
More information about the asterisk-dev
mailing list