UTF-8 decoding bug caused restart of jabber connection on perfectly legal UTF-8 encoded status messages. Thanks to Neil Stratford for hunting down the fix for this bug.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5691 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-09-10 20:19:32 +00:00
parent 9789600c42
commit 63fdd41110
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ sax_core (iksparser *prs, char *buf, int len)
} else {
return IKS_BADXML;
}
if ((c & mask) == 0) return IKS_BADXML;
/* if ((c & mask) == 0) return IKS_BADXML; I AM WRONG */
prs->uni_len = 1;
if (stack_old == -1
&& (prs->context == C_TAG