summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_task_output.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/http2/h2_task_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/http2/h2_task_output.c b/modules/http2/h2_task_output.c
index 71fefdec05..1d097ab359 100644
--- a/modules/http2/h2_task_output.c
+++ b/modules/http2/h2_task_output.c
@@ -94,7 +94,7 @@ static apr_table_t *get_trailers(h2_task_output *output)
{
if (!output->trailers_passed) {
h2_response *response = h2_from_h1_get_response(output->from_h1);
- if (response->trailers) {
+ if (response && response->trailers) {
output->trailers_passed = 1;
return response->trailers;
}