Module: kamailio
Branch: master
Commit: 539abf29103875f7412b7b3b95c5f6663a7afbe8
URL:
https://github.com/kamailio/kamailio/commit/539abf29103875f7412b7b3b95c5f66…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-29T11:18:04+01:00
jsonrpcc: init sockaddr_in structure
---
Modified: src/modules/jsonrpcc/jsonrpc_io.c
---
Diff:
https://github.com/kamailio/kamailio/commit/539abf29103875f7412b7b3b95c5f66…
Patch:
https://github.com/kamailio/kamailio/commit/539abf29103875f7412b7b3b95c5f66…
---
diff --git a/src/modules/jsonrpcc/jsonrpc_io.c b/src/modules/jsonrpcc/jsonrpc_io.c
index ddefd1b3a1..cae18322ba 100644
--- a/src/modules/jsonrpcc/jsonrpc_io.c
+++ b/src/modules/jsonrpcc/jsonrpc_io.c
@@ -430,6 +430,7 @@ int connect_server(struct jsonrpc_server *server)
struct sockaddr_in server_addr;
struct hostent *hp;
+ memset(&server_addr, 0, sizeof(struct sockaddr_in));
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(server->port);