Commit f3f6bfaf authored by Olivier Crête's avatar Olivier Crête

agent: Clear the original message pointer instead of a copy

In one case, the message pointer gets replaced by the rfc4571_message
one, so it wasn't getting cleared as expected.
parent 33206c29
......@@ -4557,8 +4557,8 @@ done:
}
/* Clear local modifications. */
if (message->from == &from) {
message->from = NULL;
if (provided_message->from == &from) {
provided_message->from = NULL;
}
return retval;
......
......@@ -689,7 +689,7 @@ read_thread_agent_cb (GInputStream *input_stream, TestIOStreamThreadData *data)
while (test_data->received_bytes < test_data->n_bytes) {
GError *error = NULL;
NiceInputMessage *messages;
NiceInputMessage *messages = {0};
guint n_messages;
gint n_valid_messages;
......
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