From: Chris Rienzo Date: Tue, 15 Nov 2016 16:04:46 +0000 (-0500) Subject: FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend X-Git-Tag: v1.8.0~1066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a76900edf1ac5f2302aeaab80bd20505d0464c6;p=thirdparty%2Ffreeswitch.git FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend --- diff --git a/src/mod/applications/mod_hiredis/mod_hiredis.c b/src/mod/applications/mod_hiredis/mod_hiredis.c index ae10619004..89a83b1165 100644 --- a/src/mod/applications/mod_hiredis/mod_hiredis.c +++ b/src/mod/applications/mod_hiredis/mod_hiredis.c @@ -283,7 +283,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; }