Commit 3eadca3e authored by Italo Guerrieri's avatar Italo Guerrieri Committed by Ignacio Casal Quinteiro
Browse files

Fix reserved bit

Close connection if reserved bits are different than zero.
These bits should always be 000 because libsoup does not
support extentions that need to use these reserved bits.
Fix Autobahn test cases 3.*

https://bugzilla.gnome.org/show_bug.cgi?id=792113
parent 14c33979
......@@ -804,6 +804,11 @@ process_frame (SoupWebsocketConnection *self)
opcode = header[0] & 0x0f;
masked = ((header[1] & 0x80) != 0);
/* We do not support extensions, reserved bits must be 0 */
if (header[0] & 0x70) {
protocol_error_and_close (self);
}
switch (header[1] & 0x7f) {
case 126:
at = 4;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment