From 7077819039592da2a437a682ebe1b9c72ea10b00 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Wed, 7 Dec 2016 14:53:29 -0500 Subject: [PATCH] FS-9827 [mod_hiredis] handle NIL reply --- src/mod/applications/mod_hiredis/hiredis_profile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/applications/mod_hiredis/hiredis_profile.c b/src/mod/applications/mod_hiredis/hiredis_profile.c index f4394ec0cc..c13c48b184 100644 --- a/src/mod/applications/mod_hiredis/hiredis_profile.c +++ b/src/mod/applications/mod_hiredis/hiredis_profile.c @@ -218,6 +218,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; default: switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "hiredis: response error[%s][%d]\n", response->str, response->type); freeReplyObject(response);