Commit fbb4da7d authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Do not attach to sockets with fileno == NULL (requires for tcp-active)

parent 390fb717
...@@ -68,6 +68,9 @@ socket_source_attach (SocketSource *socket_source, GMainContext *context) ...@@ -68,6 +68,9 @@ socket_source_attach (SocketSource *socket_source, GMainContext *context)
{ {
GSource *source; GSource *source;
if (socket_source->socket->fileno == NULL)
return;
/* Create a source. */ /* Create a source. */
source = g_socket_create_source (socket_source->socket->fileno, source = g_socket_create_source (socket_source->socket->fileno,
G_IO_IN, NULL); G_IO_IN, NULL);
......
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