From f8588a450f65fb9b7b14f0fb186a7fab11976bbc Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 8 Oct 2013 02:20:47 +0400 Subject: [PATCH] fixed typo --- ngx_rtmp_exec_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngx_rtmp_exec_module.c b/ngx_rtmp_exec_module.c index e6e02bf..3153b13 100644 --- a/ngx_rtmp_exec_module.c +++ b/ngx_rtmp_exec_module.c @@ -724,7 +724,7 @@ ngx_rtmp_exec_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v) ngx_rtmp_exec_kill(e, e->kill_signal); } - ppctx = &eacf->pull[ngx_hash_key(pctx->name.data, pctx->name.len) & + ppctx = &eacf->pull[ngx_hash_key(pctx->name.data, pctx->name.len) % eacf->nbuckets]; for (; *ppctx; ppctx = &(*ppctx)->next) { @@ -828,7 +828,7 @@ ngx_rtmp_exec_init_pull_ctx(ngx_rtmp_session_t *s, len = ngx_strlen(name); - ppctx = &eacf->pull[ngx_hash_key(name, len) & eacf->nbuckets]; + ppctx = &eacf->pull[ngx_hash_key(name, len) % eacf->nbuckets]; for (; *ppctx; ppctx = &(*ppctx)->next) { pctx = *ppctx;