Skip to content

Commit 95075aa

Browse files
committed
fixed parsing addr in control module
1 parent 732b448 commit 95075aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ngx_rtmp_control_module.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ static const char *
259259
ngx_rtmp_control_walk_session(ngx_http_request_t *r,
260260
ngx_rtmp_live_ctx_t *lctx)
261261
{
262-
ngx_str_t addr, *paddr;
263-
ngx_rtmp_session_t *s;
262+
ngx_str_t addr, *paddr;
263+
ngx_rtmp_session_t *s;
264264
ngx_rtmp_control_ctx_t *ctx;
265265

266266
s = lctx->session;
@@ -269,6 +269,7 @@ ngx_rtmp_control_walk_session(ngx_http_request_t *r,
269269
return NGX_CONF_OK;
270270
}
271271

272+
ngx_str_null(&addr);
272273
ngx_http_arg(r, (u_char *) "addr", sizeof("addr") - 1, &addr);
273274

274275
if (addr.len) {

0 commit comments

Comments
 (0)