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

This commit is contained in:
Chris Rienzo 2016-11-15 11:04:46 -05:00 committed by Mike Jerris
parent 0e5508ab57
commit 311b6e1b6b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}