summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2018-03-09 00:22:05 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2018-03-12 18:37:43 +0100
commitbbf1cb70a50c7be00ad3ff490b0d03711e03dc10 (patch)
tree27996e15c1fab024a7fd5fe5bbbb20acf1450ad4
parent3c5d2eda0d40e7892432a8b5912ae1ffc503e1fd (diff)
Windows _dbus_connect_tcp_socket_with_nonce: Keep error code for 'Unknown address family' in sync with unix
Reviewed-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61922
-rw-r--r--dbus/dbus-sysdeps-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index 9ac4f5d2f..9151ca30b 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 ();
}