提交 311b6e1b authored 作者: Chris Rienzo's avatar Chris Rienzo 提交者: Mike Jerris

FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend

上级 0e5508ab
......@@ -277,7 +277,7 @@ SWITCH_LIMIT_USAGE(hiredis_limit_usage)
int64_t count = 0; /* Redis defines the incr action as to be performed on a 64 bit signed integer */
char *hashkey = NULL, *response = NULL;
if ( !zstr(realm) ) {
if ( zstr(realm) ) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "hiredis: realm must be defined\n");
goto err;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论