aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-06-05 10:47:04 +0200
committerLoïc Hoguin <[email protected]>2013-06-05 10:47:04 +0200
commit5179b0647b1d6121013585bcd78402096f8dc04a (patch)
tree20ca7d99bca433c70437d95ce8615d0d5b1279a1 /src
parent1fc69977da8f57d5d3fa48cd68280aa2c0b1d78b (diff)
downloadcowboy-5179b0647b1d6121013585bcd78402096f8dc04a.tar.gz
cowboy-5179b0647b1d6121013585bcd78402096f8dc04a.tar.bz2
cowboy-5179b0647b1d6121013585bcd78402096f8dc04a.zip
Fix a couple control_frame clauses that were too large
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_spdy.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl
index d605331..f778b8e 100644
--- a/src/cowboy_spdy.erl
+++ b/src/cowboy_spdy.erl
@@ -221,12 +221,14 @@ system_code_change(Misc, _, _, _) ->
{ok, Misc}.
%% We do not support SYN_STREAM with FLAG_UNIDIRECTIONAL set.
-control_frame(State, << _:38, 1:1, _:26, StreamID:31, _/bits >>) ->
+control_frame(State, << 1:1, 3:15, 1:16, _:6, 1:1, _:26,
+ StreamID:31, _/bits >>) ->
rst_stream(State, StreamID, internal_error),
loop(State);
%% We do not support Associated-To-Stream-ID and CREDENTIAL Slot.
-control_frame(State, << _:65, StreamID:31, _:1, AssocToStreamID:31,
- _:8, Slot:8, _/bits >>) when AssocToStreamID =/= 0; Slot =/= 0 ->
+control_frame(State, << 1:1, 3:15, 1:16, _:33, StreamID:31, _:1,
+ AssocToStreamID:31, _:8, Slot:8, _/bits >>)
+ when AssocToStreamID =/= 0; Slot =/= 0 ->
rst_stream(State, StreamID, internal_error),
loop(State);
%% SYN_STREAM