mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-31 02:33:44 +00:00
FS-11858 [mod_hiredis] forgot to clear argc when recycling pipelined requests
This commit is contained in:
parent
e73f319aec
commit
3588cd5c51
@ -186,6 +186,7 @@ static switch_status_t hiredis_profile_execute_pipeline(hiredis_profile_t *profi
|
|||||||
request->status = SWITCH_STATUS_SUCCESS;
|
request->status = SWITCH_STATUS_SUCCESS;
|
||||||
request->next = NULL;
|
request->next = NULL;
|
||||||
request->session_uuid = NULL;
|
request->session_uuid = NULL;
|
||||||
|
request->argc = 0;
|
||||||
if ( resp ) {
|
if ( resp ) {
|
||||||
/* will block, no need to dup memory */
|
/* will block, no need to dup memory */
|
||||||
request->request = (char *)request_string;
|
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->status = SWITCH_STATUS_SUCCESS;
|
||||||
request->next = NULL;
|
request->next = NULL;
|
||||||
request->session_uuid = NULL;
|
request->session_uuid = NULL;
|
||||||
|
request->argc = 0;
|
||||||
if ( resp ) {
|
if ( resp ) {
|
||||||
/* will block, no need to dup memory */
|
/* will block, no need to dup memory */
|
||||||
request->request = (char *)script;
|
request->request = (char *)script;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user