From 4384e26a79d6e2f766fe4ee67757b9ddf877db82 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 24 Jan 2021 19:33:59 +0100 Subject: [PATCH] fix empty target header --- ngx_rtmp_notify_module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ngx_rtmp_notify_module.c b/ngx_rtmp_notify_module.c index a19864b..a5feb44 100644 --- a/ngx_rtmp_notify_module.c +++ b/ngx_rtmp_notify_module.c @@ -1362,6 +1362,9 @@ ngx_rtmp_notify_publish_handle(ngx_rtmp_session_t *s, local_name.len = ngx_strlen(v->name); len_restream = ngx_rtmp_notify_parse_http_header(s, in, &header_restream, restream, sizeof(restream) - 1); + if (len_restream <= 0) { + goto next; + } u_char *start = restream; u_char *next;