]> granicus.if.org Git - ejabberd/commitdiff
Fix function clause introduced by c17ec50e3a
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 28 Sep 2017 09:24:24 +0000 (12:24 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 28 Sep 2017 09:24:24 +0000 (12:24 +0300)
src/xmpp_stream_out.erl

index 024fdf63bc24f9172242769372d9fe1e6b44a4bc..982be4dee5acc94ba1202676fb8fc05631ed95ac 100644 (file)
@@ -867,16 +867,16 @@ resolve(Host, State) ->
 -spec srv_lookup(string(), state()) -> {{ok, [host_port()]} | network_error(), boolean()}.
 srv_lookup(_Host, #{xmlns := ?NS_COMPONENT}) ->
     %% Do not attempt to lookup SRV for component connections
-    {error, nxdomain};
+    {{error, nxdomain}, false};
 srv_lookup(Host, State) ->
     %% Only perform SRV lookups for FQDN names
     case string:chr(Host, $.) of
        0 ->
-           {error, nxdomain};
+           {{error, nxdomain}, false};
        _ ->
            case inet:parse_address(Host) of
                {ok, _} ->
-                   {error, nxdomain};
+                   {{error, nxdomain}, false};
                {error, _} ->
                    Timeout = get_dns_timeout(State),
                    Retries = get_dns_retries(State),