[libsoup/carlosgc/websockets-invalid-encode-length: 1/2] WebSockets: return after closing connection on error in process_frame
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/websockets-invalid-encode-length: 1/2] WebSockets: return after closing connection on error in process_frame
- Date: Tue, 18 Jun 2019 15:54:33 +0000 (UTC)
commit 1b664e7f4d39518318826f5c9fc34eac0701ea52
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Jun 18 17:35:02 2019 +0200
WebSockets: return after closing connection on error in process_frame
libsoup/soup-websocket-connection.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index 35eee6a6..97866fe7 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -834,6 +834,7 @@ process_frame (SoupWebsocketConnection *self)
/* We do not support extensions, reserved bits must be 0 */
if (header[0] & 0x70) {
protocol_error_and_close (self);
+ return FALSE;
}
switch (header[1] & 0x7f) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]