From 692282c6ba641ea44a2a20d44c5635debaa1fb83 Mon Sep 17 00:00:00 2001 From: TheWitness Date: Sat, 28 Jun 2025 09:03:29 -0400 Subject: [PATCH] QA: Remove the set undefined --- snmp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/snmp.c b/snmp.c index c2462c8e..e662e3b9 100644 --- a/snmp.c +++ b/snmp.c @@ -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;