blob: 27e2827903d997edeaa9ae05eb0f1ae6ce621021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ax,v 1.3 2010/11/15 13:05:45 adam Exp $
--- src/3rdparty/webkit/WebCore/websockets/WebSocketHandshake.cpp.orig 2010-09-10 09:05:20.000000000 +0000
+++ src/3rdparty/webkit/WebCore/websockets/WebSocketHandshake.cpp
@@ -286,7 +286,11 @@ int WebSocketHandshake::readServerHandsh
p += sizeof(webSocketConnectionHeader) - 1;
}
+#if defined(__NetBSD__)
+ if (!strstr(p, "\r\n\r\n")) {
+#else
if (!strnstr(p, "\r\n\r\n", end - p)) {
+#endif
// Just hasn't been received fully yet.
m_mode = Incomplete;
return -1;
|