mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 11:53:16 +00:00
FS-9737 [mod_hiredis] fix limit_usage when using hiredis backend
This commit is contained in:
parent
f3b7105d66
commit
4a76900edf
@ -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 */
|
int64_t count = 0; /* Redis defines the incr action as to be performed on a 64 bit signed integer */
|
||||||
char *hashkey = NULL, *response = NULL;
|
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");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "hiredis: realm must be defined\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user