mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
FS-9827 [mod_hiredis] handle NIL reply
This commit is contained in:
parent
a38b246a6e
commit
8ab65c8c34
@ -239,6 +239,9 @@ static switch_status_t hiredis_context_execute_sync(hiredis_context_t *context,
|
||||
case REDIS_REPLY_INTEGER:
|
||||
*resp = switch_mprintf("%lld", response->integer);
|
||||
break;
|
||||
case REDIS_REPLY_NIL:
|
||||
*resp = NULL;
|
||||
break;
|
||||
case REDIS_REPLY_ERROR:
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "hiredis: error response[%s][%d]\n", response->str, response->type);
|
||||
freeReplyObject(response);
|
||||
|
Loading…
x
Reference in New Issue
Block a user