Skip to content

Commit

Permalink
event_xmlrpc: fix possible bug in accessing NULL struct
Browse files Browse the repository at this point in the history
Fixes coverity CID 150491
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent 7e9744a commit 76fb8a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/event_xmlrpc/event_xmlrpc.c
Expand Up @@ -357,14 +357,15 @@ static str xmlrpc_print_s = { 0, 0 };
static str xmlrpc_print(evi_reply_sock *sock)
{
str aux;
struct xmlrpc_sock_param *params = sock->params;
struct xmlrpc_sock_param *params;

xmlrpc_print_s.len = 0;

if (!sock) {
LM_DBG("Nothing to print");
goto end;
}
params = sock->params;

if (sock->flags & EVI_ADDRESS)
DO_PRINT(sock->address.s, sock->address.len);
Expand Down

0 comments on commit 76fb8a2

Please sign in to comment.