summaryrefslogtreecommitdiffstats
path: root/net/rtsp_proxy/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/rtsp_proxy/files/patch-ac')
-rw-r--r--net/rtsp_proxy/files/patch-ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/rtsp_proxy/files/patch-ac b/net/rtsp_proxy/files/patch-ac
index 464163b..459a4e8 100644
--- a/net/rtsp_proxy/files/patch-ac
+++ b/net/rtsp_proxy/files/patch-ac
@@ -1,3 +1,25 @@
+--- ../proxy.c Tue Jul 6 17:42:19 1999
++++ ../proxy.c Tue Jul 20 22:26:39 1999
+@@ -1142,7 +1142,18 @@
+ }
+ //
+ // did we get a complete response yet?
+- if (! has_two_crlfs(s->sinbuf))
++ //
++
++// this used to look for a blank line, which is a dumb way to check if we
++// have a complete response since that only means we have a complete header.
++// the correct method would be to check the 'Content-Length:' header, but
++// that's too much trouble without a lot of re-writing. so this is a cheap
++// hack to look and see if the buffer ends on a 'CRLF' pair - this might get
++// broken if we happen to break on an end-of-line, but it's better than
++// nothing.
++
++ pBuf = s->sinbuf + s->amtInServerInBuffer - 2;
++ if ((pBuf[0] != '\r') || (pBuf[1] != '\n'))
+ break;
+
+ //
--- ../proxy.c.orig Sat Oct 16 10:29:52 1999
+++ ../proxy.c Sat Oct 16 10:30:01 1999
@@ -127,7 +127,9 @@
OpenPOWER on IntegriCloud