From: Chris Rienzo Date: Wed, 7 Dec 2016 19:53:29 +0000 (-0500) Subject: FS-9827 [mod_hiredis] handle NIL reply X-Git-Tag: v1.8.0~996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab65c8c3460cfc56ae533d232a96aa36b202449;p=thirdparty%2Ffreeswitch.git FS-9827 [mod_hiredis] handle NIL reply --- diff --git a/src/mod/applications/mod_hiredis/hiredis_profile.c b/src/mod/applications/mod_hiredis/hiredis_profile.c index 86ec28a01f..db7ce10bb6 100644 --- a/src/mod/applications/mod_hiredis/hiredis_profile.c +++ b/src/mod/applications/mod_hiredis/hiredis_profile.c @@ -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);