Correct malloc in proto_agent_async_channel_info

This commit is contained in:
Robert Schmidt
2018-11-07 10:53:52 +01:00
parent 44b29d04c3
commit eaff77695b
@@ -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;