Skip to content
Snippets Groups Projects
Commit eaff7769 authored by Robert Schmidt's avatar Robert Schmidt
Browse files

Correct malloc in proto_agent_async_channel_info

parent 44b29d04
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ proto_agent_async_channel_info(mod_id_t mod_id, const char *bind_ip, uint16_t bi ...@@ -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) const char* peer_ip, uint16_t peer_port)
{ {
proto_agent_async_channel_t *channel; proto_agent_async_channel_t *channel;
channel = malloc(sizeof(proto_agent_channel_t)); channel = malloc(sizeof(proto_agent_async_channel_t));
if (channel == NULL) if (channel == NULL)
goto error; goto error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment