From a9d912622967925eed9cdac8b452cc7e15aacc37 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 1 Mar 2012 22:39:26 +0900 Subject: [PATCH] Assign 0 to GOAWAY status_code for SPDY/2 --- lib/spdylay_frame.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/spdylay_frame.c b/lib/spdylay_frame.c index dac8a96b..ebc0718d 100644 --- a/lib/spdylay_frame.c +++ b/lib/spdylay_frame.c @@ -766,6 +766,8 @@ int spdylay_frame_unpack_goaway(spdylay_goaway *frame, SPDYLAY_STREAM_ID_MASK; if(frame->hd.version == SPDYLAY_PROTO_SPDY3) { frame->status_code = spdylay_get_uint32(payload+4); + } else { + frame->status_code = 0; } return 0; }