]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend
authorChris Rienzo <chris.rienzo@citrix.com>
Tue, 15 Nov 2016 16:04:46 +0000 (11:04 -0500)
committerChris Rienzo <chris.rienzo@citrix.com>
Tue, 15 Nov 2016 16:04:46 +0000 (11:04 -0500)
src/mod/applications/mod_hiredis/mod_hiredis.c

index ae106190047d39b89057e44cb03471d246eb91d7..89a83b11655423ceb810df216cdab3fd2452b3fd 100644 (file)
@@ -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;
        }