[sr-dev] git:4.1: core: fix crash related to core sockets_list command

Ovidiu Sas osas at voipembedded.com
Thu Jun 12 18:50:36 CEST 2014


Module: sip-router
Branch: 4.1
Commit: 2198cb5d508055f495af29866045d51c1098d5cc
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2198cb5d508055f495af29866045d51c1098d5cc

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Thu Jun 12 12:46:39 2014 -0400

core: fix crash related to core sockets_list  command
 - reported by Nuno Reis <nreis at wavecom.pt>
(cherry picked from commit 1c715b1a2a66a4a15d1a8def33ef369212712bb1)

---

 core_cmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core_cmd.c b/core_cmd.c
index 304c49d..52150e9 100644
--- a/core_cmd.c
+++ b/core_cmd.c
@@ -936,7 +936,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
 						"proto", get_proto_name(proto),
 						"address", si->name.s);
 				if (!si->flags & SI_IS_IP)
-					rpc->struct_add(ha, "ss",
+					rpc->struct_add(ha, "s",
 						"ipaddress", si->address_str.s);
 				rpc->struct_add(ha, "sss",
 						"proto", si->port_no_str.s,




More information about the sr-dev mailing list