diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_snmp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 4e447a45..6f187113 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -158,7 +158,7 @@ char *community = NULL; | |||
| 158 | char *oid = ""; | 158 | char *oid = ""; |
| 159 | char *label = NULL; | 159 | char *label = NULL; |
| 160 | char *units = NULL; | 160 | char *units = NULL; |
| 161 | char *port = NULL; | 161 | char *port = DEFAULT_PORT; |
| 162 | char string_value[MAX_INPUT_BUFFER] = ""; | 162 | char string_value[MAX_INPUT_BUFFER] = ""; |
| 163 | char **labels = NULL; | 163 | char **labels = NULL; |
| 164 | char **unitv = NULL; | 164 | char **unitv = NULL; |
| @@ -647,9 +647,6 @@ validate_arguments () | |||
| 647 | if (units == NULL) | 647 | if (units == NULL) |
| 648 | asprintf (&units, ""); | 648 | asprintf (&units, ""); |
| 649 | 649 | ||
| 650 | if (port == NULL) | ||
| 651 | asprintf (&port, DEFAULT_PORT); | ||
| 652 | |||
| 653 | return OK; | 650 | return OK; |
| 654 | } | 651 | } |
| 655 | 652 | ||
