Zero fill in nghttp2_session_mem_send

This commit is contained in:
Tatsuhiro Tsujikawa 2016-04-23 00:32:23 +09:00
parent e04e24c1c2
commit 3d948fd3d7
1 changed files with 2 additions and 1 deletions

View File

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