mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02:00
tests: Fix error path not setting an error
This failure path should have set the GError but did not.
This commit is contained in:
committed by
Philip Withnall
parent
b3197f2740
commit
e537716540
@@ -140,7 +140,11 @@ create_server_full (GSocketFamily family,
|
|||||||
{
|
{
|
||||||
g_socket_set_option (data->server, IPPROTO_IPV6, IPV6_V6ONLY, FALSE, NULL);
|
g_socket_set_option (data->server, IPPROTO_IPV6, IPV6_V6ONLY, FALSE, NULL);
|
||||||
if (!g_socket_speaks_ipv4 (data->server))
|
if (!g_socket_speaks_ipv4 (data->server))
|
||||||
goto error;
|
{
|
||||||
|
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
|
||||||
|
"IPv6-only server cannot speak IPv4");
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user