Commit 2ef4bd7b authored by Michael Olbrich's avatar Michael Olbrich Committed by Olivier Crête

agent: fix crash with debugging enabled

For some connection types nicesock->fileno is never set.
Make sure it is not NULL before using it.
parent fd22f80b
Pipeline #6198 passed with stage
in 1 minute and 6 seconds
......@@ -3889,7 +3889,7 @@ agent_recv_message_unlocked (
nice_address_to_string (message->from, tmpbuf);
nice_debug_verbose ("%s: Agent %p : Packet received on local socket %p "
"(fd %d) from [%s]:%u (%" G_GSSIZE_FORMAT " octets).", G_STRFUNC, agent,
nicesock, g_socket_get_fd (nicesock->fileno), tmpbuf,
nicesock, nicesock->fileno ? g_socket_get_fd (nicesock->fileno) : -1, tmpbuf,
nice_address_get_port (message->from), message->length);
}
......
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