6706N/A# The patch is based on the following commit from the upstream:
6706N/A# The fix is patched until the new version becomes available
6706N/A "xmlns='jabber:client' to='%s' version='1.0'>", host);
6706N/A seen = BIO_read(sbio, mbuf, BUFSIZZ);
6706N/A- (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")) {
6706N/A+ while (!strstr(mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") &&
6706N/A+ !strstr(mbuf, "<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"")) {
6706N/A if (strstr(mbuf, "/stream:features>"))
6706N/A seen = BIO_read(sbio, mbuf, BUFSIZZ);