ObjXMPP  Check-in [dad0ddb2c0]

Overview
Comment:Catch the case where the domain exists, but SRV records don't
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dad0ddb2c0447a8927d72f807db8c746627750ea5d63336a083a0bac3cf08202
User & Date: florob@babelmonkeys.de on 2011-06-16 18:26:34
Other Links: manifest | tags
Context
2011-06-16
18:28
Don't connect to any address record if SRV records exist check-in: a762e88af4 user: florob@babelmonkeys.de tags: trunk
18:26
Catch the case where the domain exists, but SRV records don't check-in: dad0ddb2c0 user: florob@babelmonkeys.de tags: trunk
2011-06-05
20:07
Adjust to API change. check-in: b570a39e78 user: js tags: trunk
Changes

Modified src/XMPPSRVLookup.m from [9b4d1e1b78] to [4fcb2e211c].

212
213
214
215
216
217
218
219


220
221
222
223
224
225
226
212
213
214
215
216
217
218

219
220
221
222
223
224
225
226
227







-
+
+







				  socket: nil
				    host: domain];

		answer = [self allocMemoryWithSize: of_pagesize];
		answerLen = res_nsearch(&resState, [request cString], ns_c_in,
		    ns_t_srv, answer, (int)of_pagesize);

		if ((answerLen == -1) && (h_errno == HOST_NOT_FOUND))
		if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||
		    (h_errno == NO_DATA)))
			return;

		if (answerLen < 1 || answerLen > of_pagesize) {
			@throw [OFAddressTranslationFailedException
			    newWithClass: isa
				  socket: nil
				    host: domain];