From 3b4d73751f2bdce3b26d070ea5b4a7eae3a3b750 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Sep 2015 16:55:58 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@15347 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 9122ce016d..9a61d52b99 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -155,10 +155,9 @@ void ThreadData::xmpp_client_query(void) if (SUCCEEDED(status) && results) { LIST dnsList(5, CompareDNS); - for (DNS_RECORDA *rec = results; rec; rec = rec->pNext) { + for (DNS_RECORDA *rec = results; rec; rec = rec->pNext) if (rec->Data.Srv.pNameTarget && rec->wType == DNS_TYPE_SRV) dnsList.insert(&rec->Data.Srv); - } for (int i = 0; i < dnsList.getCount(); i++) { WORD dnsPort = (conn.port == 0 || conn.port == 5222) ? dnsList[i]->wPort : conn.port; @@ -170,7 +169,8 @@ void ThreadData::xmpp_client_query(void) strncpy_s(conn.manualHost, dnsHost, _TRUNCATE); conn.port = dnsPort; break; - } } + } + } DnsRecordListFree(results, DnsFreeRecordList); } else proto->debugLogA("%s not resolved", temp); -- cgit v1.2.3