]> granicus.if.org Git - ejabberd/commitdiff
Fix a recent commit
authorBadlop <badlop@process-one.net>
Thu, 8 Dec 2011 11:55:50 +0000 (12:55 +0100)
committerBadlop <badlop@process-one.net>
Thu, 8 Dec 2011 11:55:50 +0000 (12:55 +0100)
src/ejabberd_s2s_in.erl

index a0cf1a7323c83e94ede2b4a8b4d275e4be92c5bd..141db34bfe43c1a5c8793072f8018dc3e11f5fc9 100644 (file)
@@ -324,8 +324,8 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) ->
                        _ ->
                            false
                    end,
+                   AllowRemoteHost = ejabberd_s2s:allow_host("", AuthDomain),
                    if
-                       AllowRemoteHost = ejabberd_s2s:allow_host("", AuthDomain),
                        AuthRes andalso AllowRemoteHost ->
                            (StateData#state.sockmod):reset_stream(
                              StateData#state.socket),