ObjXMPP  Check-in [f848b17360]

Overview
Comment:Close the stream when restricted XML is received
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f848b173607f07dc4876021e38d3be652302b2d5f1f1b9cd88dfc083bd83bc76
User & Date: js on 2012-08-10 12:08:22
Original User & Date: js on 2012-08-10 12:08:23
Other Links: manifest | tags
Context
2012-08-10
12:08
Add very basic Stream Management (XEP-0198) support check-in: a618f77f45 user: js tags: trunk
12:08
Close the stream when restricted XML is received check-in: f848b17360 user: js tags: trunk
2012-07-12
03:34
Don't access isa directly. check-in: c987aa9a5f user: js tags: trunk
Changes

Modified src/XMPPConnection.m from [eb7dbdc3cf] to [cfbc33f443].

311
312
313
314
315
316
317

318
319







320
321
322
323
324
325
326
311
312
313
314
315
316
317
318


319
320
321
322
323
324
325
326
327
328
329
330
331
332







+
-
-
+
+
+
+
+
+
+







{
	if (length < 1) {
		[delegates broadcastSelector: @selector(connectionWasClosed:)
				  withObject: self];
		return;
	}

	@try {
	[parser parseBuffer: buffer
		     length: length];
		[parser parseBuffer: buffer
			 length: length];
	} @catch (OFMalformedXMLException *e) {
		[self XMPP_sendStreamError: @"bad-format"
				      text: nil];
		[self close];
	}

	[oldParser release];
	[oldElementBuilder release];

	oldParser = nil;
	oldElementBuilder = nil;
}