diff options
Diffstat (limited to 'web/attachments/234288-check_smtp.c.patch')
-rw-r--r-- | web/attachments/234288-check_smtp.c.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/web/attachments/234288-check_smtp.c.patch b/web/attachments/234288-check_smtp.c.patch new file mode 100644 index 0000000..9a69cce --- /dev/null +++ b/web/attachments/234288-check_smtp.c.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | *** check_smtp.c.orig Wed Jun 13 12:19:37 2007 | ||
2 | --- check_smtp.c Wed Jun 13 12:22:30 2007 | ||
3 | *************** process_arguments (int argc, char **argv | ||
4 | *** 582,603 **** | ||
5 | break; | ||
6 | case 'C': /* commands */ | ||
7 | if (ncommands >= command_size) { | ||
8 | ! commands = realloc (commands, command_size+8); | ||
9 | if (commands == NULL) | ||
10 | die (STATE_UNKNOWN, | ||
11 | _("Could not realloc() units [%d]\n"), ncommands); | ||
12 | } | ||
13 | ! commands[ncommands] = optarg; | ||
14 | ncommands++; | ||
15 | break; | ||
16 | case 'R': /* server responses */ | ||
17 | if (nresponses >= response_size) { | ||
18 | ! responses = realloc (responses, response_size+8); | ||
19 | if (responses == NULL) | ||
20 | die (STATE_UNKNOWN, | ||
21 | _("Could not realloc() units [%d]\n"), nresponses); | ||
22 | } | ||
23 | ! responses[nresponses] = optarg; | ||
24 | nresponses++; | ||
25 | break; | ||
26 | case 'c': /* critical time threshold */ | ||
27 | --- 582,607 ---- | ||
28 | break; | ||
29 | case 'C': /* commands */ | ||
30 | if (ncommands >= command_size) { | ||
31 | ! command_size+=8; | ||
32 | ! commands = realloc (commands, sizeof(char **)*command_size); | ||
33 | if (commands == NULL) | ||
34 | die (STATE_UNKNOWN, | ||
35 | _("Could not realloc() units [%d]\n"), ncommands); | ||
36 | } | ||
37 | ! commands[ncommands] = (char *)malloc (sizeof(char)*255); | ||
38 | ! strncpy (commands[ncommands], optarg, 250); | ||
39 | ncommands++; | ||
40 | break; | ||
41 | case 'R': /* server responses */ | ||
42 | if (nresponses >= response_size) { | ||
43 | ! response_size += 8; | ||
44 | ! responses = realloc (responses, sizeof(char **)*response_size); | ||
45 | if (responses == NULL) | ||
46 | die (STATE_UNKNOWN, | ||
47 | _("Could not realloc() units [%d]\n"), nresponses); | ||
48 | } | ||
49 | ! responses[nresponses] = (char *)malloc (sizeof(char)*255); | ||
50 | ! strncpy (responses[nresponses], optarg, 250); | ||
51 | nresponses++; | ||
52 | break; | ||
53 | case 'c': /* critical time threshold */ | ||