diff --git a/lib/http2.c b/lib/http2.c index 251fcd8e82..22655e94cd 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -370,6 +370,10 @@ static ssize_t send_callback(nghttp2_session *h2, (void)h2; (void)flags; + if(!c->send_underlying) + /* called before setup properly! */ + return NGHTTP2_ERR_CALLBACK_FAILURE; + written = ((Curl_send*)c->send_underlying)(conn, FIRSTSOCKET, data, length, &result);