From: Chris Rienzo Date: Thu, 23 May 2019 00:55:31 +0000 (+0000) Subject: FS-11858 [mod_hiredis] forgot to clear argc when recycling pipelined requests X-Git-Tag: v1.10.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3588cd5c51bf437c967d02bb09bb9aada0ae97f6;p=thirdparty%2Ffreeswitch.git FS-11858 [mod_hiredis] forgot to clear argc when recycling pipelined requests --- diff --git a/src/mod/applications/mod_hiredis/hiredis_pipeline.c b/src/mod/applications/mod_hiredis/hiredis_pipeline.c index dc09d34362..2d061882a9 100644 --- a/src/mod/applications/mod_hiredis/hiredis_pipeline.c +++ b/src/mod/applications/mod_hiredis/hiredis_pipeline.c @@ -186,6 +186,7 @@ static switch_status_t hiredis_profile_execute_pipeline(hiredis_profile_t *profi request->status = SWITCH_STATUS_SUCCESS; request->next = NULL; request->session_uuid = NULL; + request->argc = 0; if ( resp ) { /* will block, no need to dup memory */ request->request = (char *)request_string; @@ -232,6 +233,7 @@ switch_status_t hiredis_profile_eval_pipeline(hiredis_profile_t *profile, switch request->status = SWITCH_STATUS_SUCCESS; request->next = NULL; request->session_uuid = NULL; + request->argc = 0; if ( resp ) { /* will block, no need to dup memory */ request->request = (char *)script;