From 0ac338051b72a1e3717bcf8a54270cfeb50f1d13 Mon Sep 17 00:00:00 2001 From: "mbelshe@chromium.org" Date: Fri, 9 Apr 2010 16:12:03 +0000 Subject: Add support for the SPDY session frame. BUG=34749 TEST=SpdyNetworkTransactionTest.SettingsSaved, SettingsPlayback Review URL: http://codereview.chromium.org/1595013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44092 0039d316-1c4b-4281-b951-d872f2087c98 --- net/spdy/spdy_framer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net/spdy/spdy_framer.cc') diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc index 864a0d9..65ef2e5 100644 --- a/net/spdy/spdy_framer.cc +++ b/net/spdy/spdy_framer.cc @@ -298,6 +298,11 @@ void SpdyFramer::ProcessControlFrameHeader() { SpdyGoAwayControlFrame::size() - SpdyFrame::size()) set_error(SPDY_INVALID_CONTROL_FRAME); break; + case SETTINGS: + if (current_control_frame.length() < + SpdySettingsControlFrame::size() - SpdyControlFrame::size()) + set_error(SPDY_INVALID_CONTROL_FRAME); + break; default: LOG(WARNING) << "Valid spdy control frame with unknown type: " << current_control_frame.type(); -- cgit v1.1