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 ddb106d7f6
commit 1b5eba8324
1 changed files with 1 additions and 1 deletions

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;
}