blob: 87f8098a3e6a5554bf493390f03062426067188c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- check_tcp.c.orig 2008-04-10 13:02:42.000000000 -0400
+++ check_tcp.c 2008-04-10 13:14:50.000000000 -0400
@@ -167,9 +167,14 @@
}
else if (!strncmp(SERVICE, "JABBER", 6)) {
SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n";
- EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'";
+ server_expect_count = 3;
+ server_expect = malloc(sizeof(char *) * server_expect_count);
+ server_expect[0] = "<?xml version='1.0' encoding='UTF-8'?><stream:stream";
+ server_expect[1] = "xmlns=\"jabber:client\"";
+ server_expect[2] = "xmlns:stream=\"http://etherx.jabber.org/streams\"";
QUIT = "</stream:stream>\n";
- flags |= FLAG_HIDE_OUTPUT;
+ flags |= (FLAG_MATCH_ALL | FLAG_HIDE_OUTPUT);
+ flags &= ~FLAG_EXACT_MATCH;
PORT = 5222;
}
else if (!strncmp (SERVICE, "NNTPS", 5)) {
|