提交 8ab65c8c authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-9827 [mod_hiredis] handle NIL reply

上级 a38b246a
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论