diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_tcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index a977077c..315c7525 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
| @@ -517,7 +517,6 @@ process_arguments (int argc, char **argv) | |||
| 517 | asprintf(&server_send, "%s", optarg); | 517 | asprintf(&server_send, "%s", optarg); |
| 518 | break; | 518 | break; |
| 519 | case 'e': /* expect string (may be repeated) */ | 519 | case 'e': /* expect string (may be repeated) */ |
| 520 | EXPECT = NULL; | ||
| 521 | flags &= ~FLAG_EXACT_MATCH; | 520 | flags &= ~FLAG_EXACT_MATCH; |
| 522 | if (server_expect_count == 0) | 521 | if (server_expect_count == 0) |
| 523 | server_expect = malloc (sizeof (char *) * (++server_expect_count)); | 522 | server_expect = malloc (sizeof (char *) * (++server_expect_count)); |
| @@ -619,7 +618,7 @@ print_help (void) | |||
| 619 | printf (" %s\n", "-s, --send=STRING"); | 618 | printf (" %s\n", "-s, --send=STRING"); |
| 620 | printf (" %s\n", _("String to send to the server")); | 619 | printf (" %s\n", _("String to send to the server")); |
| 621 | printf (" %s\n", "-e, --expect=STRING"); | 620 | printf (" %s\n", "-e, --expect=STRING"); |
| 622 | printf (" %s\n", _("String to expect in server response")); | 621 | printf (" %s %s\n", _("String to expect in server response"), _("(may be repeated)")); |
| 623 | printf (" %s\n", "-q, --quit=STRING"); | 622 | printf (" %s\n", "-q, --quit=STRING"); |
| 624 | printf (" %s\n", _("String to send server to initiate a clean close of the connection")); | 623 | printf (" %s\n", _("String to send server to initiate a clean close of the connection")); |
| 625 | printf (" %s\n", "-r, --refuse=ok|warn|crit"); | 624 | printf (" %s\n", "-r, --refuse=ok|warn|crit"); |
