Skip to content

Commit

Permalink
update xmpp string
Browse files Browse the repository at this point in the history
  • Loading branch information
ioerror committed Aug 19, 2010
1 parent e15a13e commit 5dfb1cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sslscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ int tcpConnect(struct sslCheckOptions *options)
It may be useful to provide a commandline switch to provide the
expected hostname.
*/
sprintf(xmpp_setup, "<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='%s' version='1.0'>\r\n", options->host);
sprintf(xmpp_setup, "<?xml version='1.0' ?>\r\n"
"<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='%s' version='1.0'>\r\n", options->host);
tlsStarted = 1;
memset(buffer, 0, BUFFERSIZE);
send(socketDescriptor, xmpp_setup, strlen(xmpp_setup), 0);
Expand Down

0 comments on commit 5dfb1cd

Please sign in to comment.