Zero fill in nghttp2_session_mem_send
This commit is contained in:
parent
e04e24c1c2
commit
3d948fd3d7
|
@ -2877,7 +2877,6 @@ static ssize_t nghttp2_session_mem_send_internal(nghttp2_session *session,
|
||||||
aob = &session->aob;
|
aob = &session->aob;
|
||||||
framebufs = &aob->framebufs;
|
framebufs = &aob->framebufs;
|
||||||
|
|
||||||
*data_ptr = NULL;
|
|
||||||
/* We may have idle streams more than we expect (e.g.,
|
/* We may have idle streams more than we expect (e.g.,
|
||||||
nghttp2_session_change_stream_priority() or
|
nghttp2_session_change_stream_priority() or
|
||||||
nghttp2_session_create_idle_stream()). Adjust them here. */
|
nghttp2_session_create_idle_stream()). Adjust them here. */
|
||||||
|
@ -3142,6 +3141,8 @@ ssize_t nghttp2_session_mem_send(nghttp2_session *session,
|
||||||
int rv;
|
int rv;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
|
*data_ptr = NULL;
|
||||||
|
|
||||||
len = nghttp2_session_mem_send_internal(session, data_ptr, 1);
|
len = nghttp2_session_mem_send_internal(session, data_ptr, 1);
|
||||||
if (len <= 0) {
|
if (len <= 0) {
|
||||||
return len;
|
return len;
|
||||||
|
|
Loading…
Reference in New Issue