Fix bufoff_ptr if no padding is made

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-08 18:21:09 +09:00
parent 9c30ed1a64
commit 10feab02e8
1 changed files with 1 additions and 1 deletions

View File

@ -4077,7 +4077,7 @@ ssize_t nghttp2_session_pack_data(nghttp2_session *session,
frame->padlen = rv;
frame->hd.length = payloadlen + rv;
} else {
*bufoff_ptr = 0;
*bufoff_ptr = 2;
frame->padlen = 0;
frame->hd.length = payloadlen;
}