diff options
Diffstat (limited to 'plugins/check_snmp.c')
-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; char *oid = ""; char *label = NULL; char *units = NULL; -char *port = NULL; +char *port = DEFAULT_PORT; char string_value[MAX_INPUT_BUFFER] = ""; char **labels = NULL; char **unitv = NULL; @@ -647,9 +647,6 @@ validate_arguments () if (units == NULL) asprintf (&units, ""); - if (port == NULL) - asprintf (&port, DEFAULT_PORT); - return OK; } |