From: Seven Du Date: Wed, 8 Feb 2017 08:51:22 +0000 (+0800) Subject: FS-9904 fix assert from the last refactor X-Git-Tag: v1.8.0~862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6b5058efa1eb0bcad3c2c9c9ab9bc81789f9541;p=thirdparty%2Ffreeswitch.git FS-9904 fix assert from the last refactor --- diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 81c9cd0638..d3b1506aa5 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -1288,6 +1288,8 @@ static void *SWITCH_THREAD_FUNC msrp_worker(switch_thread_t *thread, void *obj) if (p + len > last_p) { // unparsed msg in buffer p += len; + len = MSRP_BUFF_SIZE - (p - buf); + if (!msrp_msg) { int rest_len = p - last_p;