Commit 2eb9633c authored by Olivier Crête's avatar Olivier Crête

agent: Initialize variable

There is a codepath where it can be used without being filled.
Found by coverity.
parent c4782159
...@@ -4219,6 +4219,7 @@ agent_recv_message_unlocked ( ...@@ -4219,6 +4219,7 @@ agent_recv_message_unlocked (
/* We need an address for packet parsing, below. */ /* We need an address for packet parsing, below. */
if (message->from == NULL) { if (message->from == NULL) {
nice_address_init (&from);
message->from = &from; message->from = &from;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment