Skip to content

Commit

Permalink
event_xmlrpc: rebuild buffer for each event
Browse files Browse the repository at this point in the history
This prenvets crashes when multiple xmlrpc subscribers are used

(cherry picked from commit 1885c0d)
  • Loading branch information
razvancrainea committed Aug 16, 2017
1 parent c33f23f commit 4b83be4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/event_xmlrpc/xmlrpc_send.c
Expand Up @@ -375,11 +375,6 @@ int xmlrpc_build_buffer(str *event_name, evi_reply_sock *sock,
char *b, *p;
evi_param_p param;

if (params && (params->flags & XMLRPC_FLAG)) {
LM_DBG("buffer already built\n");
return 0;
}

b_len = XMLRPC_DEFAULT_BUFFER_SIZE;
b = xmlrpc_body_buf;

Expand Down Expand Up @@ -474,8 +469,6 @@ int xmlrpc_build_buffer(str *event_name, evi_reply_sock *sock,
LM_ERR("cannot build send msg\n");
return -1;
}
if (params)
params->flags |= XMLRPC_FLAG;

return 0;
}
Expand Down

0 comments on commit 4b83be4

Please sign in to comment.