Close the stream when restricted XML is received
This commit is contained in:
parent
f590ff46fe
commit
882b088fbb
1 changed files with 8 additions and 2 deletions
|
@ -315,8 +315,14 @@
|
|||
return;
|
||||
}
|
||||
|
||||
[parser parseBuffer: buffer
|
||||
length: length];
|
||||
@try {
|
||||
[parser parseBuffer: buffer
|
||||
length: length];
|
||||
} @catch (OFMalformedXMLException *e) {
|
||||
[self XMPP_sendStreamError: @"bad-format"
|
||||
text: nil];
|
||||
[self close];
|
||||
}
|
||||
|
||||
[oldParser release];
|
||||
[oldElementBuilder release];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue