Fix missing error handling for session_after_frame_sent1

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-02 14:49:36 +09:00
parent ba0f4d77a0
commit c3215af5f6
1 changed files with 5 additions and 0 deletions

View File

@ -2741,6 +2741,11 @@ static ssize_t nghttp2_session_mem_send_internal(nghttp2_session *session,
rv = session_after_frame_sent2(session);
} else {
rv = session_after_frame_sent1(session);
if (rv < 0) {
/* FATAL */
assert(nghttp2_is_fatal(rv));
return rv;
}
rv = session_after_frame_sent2(session);
}
if (rv < 0) {