]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channels/sip/reqresp_parser: Fix unit tests for r426594
authorMatthew Jordan <mjordan@digium.com>
Fri, 31 Oct 2014 03:26:00 +0000 (03:26 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 31 Oct 2014 03:26:00 +0000 (03:26 +0000)
commitf6809b01df4a958d493f12d2c286a86193a8775a
treea2ad667be0524256b27b5d86c12aad2534b27bb9
parentb2320497f8f0372e09b544f749978b793cd49e10
channels/sip/reqresp_parser: Fix unit tests for r426594

When r426594 was made, it did not take into account a unit test that verified
that the function properly populated the unsupported buffer. The function
would previously memset the buffer if it detected it had any contents; since
this function can now be called iteratively on successive headers, the unit
tests would now fail. This patch updates the unit tests to reset the buffer
themselves between successive calls, and updates the documentation of the
function to note that this is now required.
........

Merged revisions 426858 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 426860 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 426863 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/sip/include/reqresp_parser.h
channels/sip/reqresp_parser.c