mirror of
https://github.com/Cacti/spine.git
synced 2026-12-02 21:37:07 +09:00
QA: Remove the set undefined
This commit is contained in:
1 parent
366a93ea37
commit
692282c6ba
1 file changed
-2
@@ -482,8 +482,6 @@ char *snmp_get_base(host_t *current_host, char *snmp_oid, bool should_fail) {
|
||||
vars = response->variables;
|
||||
|
||||
if (vars->type == SNMP_NOSUCHOBJECT) {
|
||||
SET_UNDEFINED(result_string);
|
||||
|
||||
if (!strstr(snmp_oid, ".1.3.6.1.2.1.1.1.0") && !strstr(snmp_oid, ".1.3.6.1.2.1.1.3.0")) {
|
||||
SET_UNDEFINED(result_string);
|
||||
status = STAT_ERROR;
|
||||
|
||||
Reference in new issue
Block a user