From 311b6e1b6b7d9df48947d63392bbfad08ff079d6 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 15 Nov 2016 11:04:46 -0500 Subject: [PATCH] FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend --- src/mod/applications/mod_hiredis/mod_hiredis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_hiredis/mod_hiredis.c b/src/mod/applications/mod_hiredis/mod_hiredis.c index 00b04c6a7b..bafe79394a 100644 --- a/src/mod/applications/mod_hiredis/mod_hiredis.c +++ b/src/mod/applications/mod_hiredis/mod_hiredis.c @@ -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; }