Browse code

core: fix crash related to core sockets_list command - reported by Nuno Reis <nreis@wavecom.pt>

Ovidiu Sas authored on 12/06/2014 16:46:39
Showing 1 changed files
... ...
@@ -936,7 +936,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
936 936
 						"proto", get_proto_name(proto),
937 937
 						"address", si->name.s);
938 938
 				if (!si->flags & SI_IS_IP)
939
-					rpc->struct_add(ha, "ss",
939
+					rpc->struct_add(ha, "s",
940 940
 						"ipaddress", si->address_str.s);
941 941
 				rpc->struct_add(ha, "sss",
942 942
 						"proto", si->port_no_str.s,