networkaddress: Return an error from _g_uri_parse_authority()

So that errors can be propagated if necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=772989
This commit is contained in:
Bastien Nocera
2017-01-03 16:19:56 +01:00
committed by Philip Withnall
parent 88366621ee
commit 5f2c20e88b
4 changed files with 19 additions and 19 deletions

View File

@@ -329,7 +329,7 @@ g_simple_proxy_resolver_lookup (GProxyResolver *proxy_resolver,
gchar *host = NULL;
gushort port;
if (_g_uri_parse_authority (uri, &host, &port, NULL) &&
if (_g_uri_parse_authority (uri, &host, &port, NULL, NULL) &&
ignore_host (resolver, host, port))
proxy = "direct://";