]> granicus.if.org Git - ejabberd/commitdiff
Generate 'remote-server-not-found' stanza error for non-IDN domains
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Mon, 29 Jul 2019 19:45:38 +0000 (22:45 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Mon, 29 Jul 2019 19:45:38 +0000 (22:45 +0300)
Fixes #2969

src/ejabberd_s2s_out.erl

index 57d8a626786f5fbec176c2b72a16ab5ed43baf1b..40ece0f7b2d62491eaa1d36468a3afe44c391243 100644 (file)
@@ -367,9 +367,11 @@ mk_bounce_error(Lang, #{stop_reason := Why}) ->
            xmpp:err_resource_constraint(Reason, Lang);
        {dns, _} ->
            xmpp:err_remote_server_not_found(Reason, Lang);
-                                            _ ->
+       {idna, _} ->
+           xmpp:err_remote_server_not_found(Reason, Lang);
+       _ ->
            xmpp:err_remote_server_timeout(Reason, Lang)
-         end;
+    end;
 mk_bounce_error(_Lang, _State) ->
     %% We should not be here. Probably :)
     xmpp:err_remote_server_not_found().