From 0da836bebed57e4abfe204043a926c032b5e6f2b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 9 Mar 2018 00:22:05 +0100 Subject: [PATCH] On Windows use the same error code for 'Unknown address family' errors in _dbus_connect_tcp_socket_with_nonce() as on unix Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61922 --- dbus/dbus-sysdeps-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 432faa22..8e354793 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -1527,7 +1527,7 @@ _dbus_connect_tcp_socket_with_nonce (const char *host, else { dbus_set_error (error, - DBUS_ERROR_INVALID_ARGS, + DBUS_ERROR_BAD_ADDRESS, "Unknown address family %s", family); return _dbus_socket_get_invalid (); } -- 2.12.3