From 56bdfd1df20116ecd756a070f13fba2d0336889f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 25 Feb 2016 00:58:24 +0900 Subject: [PATCH] Revert "Handle extension frame in session_inbound_frame_reset" This reverts commit dbffb8995b3624484e3567bcd639d4af7daf7f34. --- lib/nghttp2_session.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index fffdf45d..6f3843c8 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -231,8 +231,6 @@ static void session_inbound_frame_reset(nghttp2_session *session) { nghttp2_session_new(), we rely on the fact that iframe->frame.hd.type is 0, so that no free is performed. */ switch (iframe->frame.hd.type) { - case NGHTTP2_DATA: - break; case NGHTTP2_HEADERS: nghttp2_frame_headers_free(&iframe->frame.headers, mem); break; @@ -257,10 +255,6 @@ static void session_inbound_frame_reset(nghttp2_session *session) { case NGHTTP2_WINDOW_UPDATE: nghttp2_frame_window_update_free(&iframe->frame.window_update); break; - default: - /* extension frame */ - nghttp2_frame_extension_free(&iframe->frame.ext); - break; } memset(&iframe->frame, 0, sizeof(nghttp2_frame));