fix: TCP fragment reassembly fails

This commit is contained in:
Thomas Ries 2019-05-10 15:01:16 +00:00
parent 970f0b30a6
commit 50674bf8e7
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
0.8.3dev
========
10-May-2019: - fix: TCP fragment reassembly fails
17-Mar-2018: - Improved syslog output (more consistent behavior)
17-Jan-2018: - Deal with OPTION requests that have Max-Forwards=0
(RFC3261, "11.2 Processing of OPTIONS Request" and

View File

@ -374,6 +374,7 @@ for (i=0; i< highest_fd; i++) {
if (sip_tcp_cache[i].rxbuf_len <= bufsize) {
memcpy (buf, sip_tcp_cache[i].rx_buffer, sip_tcp_cache[i].rxbuf_len);
length = sip_tcp_cache[i].rxbuf_len;
sip_tcp_cache[i].rxbuf_len=0;
} else {
/* TCP RX buffer bigger than callers buffer... */
DEBUGC(DBCLASS_NET, "buffer passed to sipsock_waitfordata is too small");