diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index 0510515c28..23b9b8d9b0 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -514,10 +514,14 @@ static void cf_quiche_process_ev(struct Curl_cfilter *cf, struct h3_stream_ctx *stream, quiche_h3_event *ev) { + enum quiche_h3_event_type type; + if(!stream) return; - switch(quiche_h3_event_type(ev)) { + type = quiche_h3_event_type(ev); + + switch(type) { case QUICHE_H3_EVENT_HEADERS: { struct cb_ctx cb_ctx; stream->resp_got_header = TRUE; @@ -563,7 +567,7 @@ static void cf_quiche_process_ev(struct Curl_cfilter *cf, default: CURL_TRC_CF(data, cf, "[%" PRIu64 "] recv, unhandled event %d", - stream->id, (int)quiche_h3_event_type(ev)); + stream->id, (int)type); break; } } diff --git a/tests/server/util.c b/tests/server/util.c index 2531dee2c1..3a76d27697 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -436,7 +436,7 @@ static LRESULT CALLBACK main_window_proc(HWND hwnd, UINT uMsg, break; } if(signum) { - logmsg("main_window_proc: %d -> %d", uMsg, signum); + logmsg("main_window_proc: %u -> %d", uMsg, signum); raise(signum); } }