http2: Use nghttp2 library error code for error return value

This commit is contained in:
Tatsuhiro Tsujikawa
2015-06-06 18:10:30 +09:00
committed by Daniel Stenberg
parent aa4e3c6438
commit c2cc3a5e97

View File

@@ -721,7 +721,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
if(!headp) {
free(stream->push_headers);
stream->push_headers = NULL;
return 1;
return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
}
stream->push_headers = headp;
}