Fix bufoff_ptr if no padding is made
This commit is contained in:
parent
9c30ed1a64
commit
10feab02e8
|
@ -4077,7 +4077,7 @@ ssize_t nghttp2_session_pack_data(nghttp2_session *session,
|
||||||
frame->padlen = rv;
|
frame->padlen = rv;
|
||||||
frame->hd.length = payloadlen + rv;
|
frame->hd.length = payloadlen + rv;
|
||||||
} else {
|
} else {
|
||||||
*bufoff_ptr = 0;
|
*bufoff_ptr = 2;
|
||||||
frame->padlen = 0;
|
frame->padlen = 0;
|
||||||
frame->hd.length = payloadlen;
|
frame->hd.length = payloadlen;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue