diff options
Diffstat (limited to 'web/attachments/274034-check_tcp-openfire-jabber.patch')
-rw-r--r-- | web/attachments/274034-check_tcp-openfire-jabber.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/web/attachments/274034-check_tcp-openfire-jabber.patch b/web/attachments/274034-check_tcp-openfire-jabber.patch new file mode 100644 index 0000000..87f8098 --- /dev/null +++ b/web/attachments/274034-check_tcp-openfire-jabber.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | --- check_tcp.c.orig 2008-04-10 13:02:42.000000000 -0400 | ||
2 | +++ check_tcp.c 2008-04-10 13:14:50.000000000 -0400 | ||
3 | @@ -167,9 +167,14 @@ | ||
4 | } | ||
5 | else if (!strncmp(SERVICE, "JABBER", 6)) { | ||
6 | SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n"; | ||
7 | - EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'"; | ||
8 | + server_expect_count = 3; | ||
9 | + server_expect = malloc(sizeof(char *) * server_expect_count); | ||
10 | + server_expect[0] = "<?xml version='1.0' encoding='UTF-8'?><stream:stream"; | ||
11 | + server_expect[1] = "xmlns=\"jabber:client\""; | ||
12 | + server_expect[2] = "xmlns:stream=\"http://etherx.jabber.org/streams\""; | ||
13 | QUIT = "</stream:stream>\n"; | ||
14 | - flags |= FLAG_HIDE_OUTPUT; | ||
15 | + flags |= (FLAG_MATCH_ALL | FLAG_HIDE_OUTPUT); | ||
16 | + flags &= ~FLAG_EXACT_MATCH; | ||
17 | PORT = 5222; | ||
18 | } | ||
19 | else if (!strncmp (SERVICE, "NNTPS", 5)) { | ||