From eaff77695b381583b2813428202be3e59c2d4ab6 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Fri, 26 Oct 2018 21:55:36 +0200 Subject: [PATCH] Correct malloc in proto_agent_async_channel_info --- openair2/LAYER2/PROTO_AGENT/proto_agent_async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/PROTO_AGENT/proto_agent_async.c b/openair2/LAYER2/PROTO_AGENT/proto_agent_async.c index 660c21e75e..94532b1942 100644 --- a/openair2/LAYER2/PROTO_AGENT/proto_agent_async.c +++ b/openair2/LAYER2/PROTO_AGENT/proto_agent_async.c @@ -39,7 +39,7 @@ proto_agent_async_channel_info(mod_id_t mod_id, const char *bind_ip, uint16_t bi const char* peer_ip, uint16_t peer_port) { proto_agent_async_channel_t *channel; - channel = malloc(sizeof(proto_agent_channel_t)); + channel = malloc(sizeof(proto_agent_async_channel_t)); if (channel == NULL) goto error;