FS-9904 fix assert from the last refactor

This commit is contained in:
Seven Du 2017-02-08 16:51:22 +08:00
parent 189786d49b
commit d6b5058efa

View File

@ -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;