[libsoup/websockets-fixes-2.64: 4/19] WebSockets: return after closing connection on error in process_frame




commit 8dffdf5d736d0e917b9df69e298de4299447b9b2
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 899e0651..7845fd0c 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]