[monitoring-plugins] check_snmp: fixed falltrhough case in ...

Lorenz Kästle git at monitoring-plugins.org
Tue Apr 7 13:10:13 CEST 2026


    Module: monitoring-plugins
    Branch: fix_check_snmp_fallthrough
    Commit: 0fe19fb8ac5e0cc1d592831b6f3150936c17f3fd
    Author: Andreas Baumann <mail at andreasbaumann.cc>
 Committer: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
      Date: Fri Jan 23 08:59:52 2026 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0fe19fb8

check_snmp: fixed falltrhough case in ASN_FLOAT/ASN_DOUBLE

---

 plugins/check_snmp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index f470d222..1746fd79 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -116,6 +116,7 @@ gen_state_string_type gen_state_string(check_snmp_state_entry *entries, size_t n
 				break;
 			case ASN_FLOAT:
 				printf("Type FLOAT\n");
+				break;
 			case ASN_DOUBLE:
 				printf("Type DOUBLE\n");
 				break;
@@ -217,6 +218,7 @@ recover_state_data_type recover_state_data(char *state_string, idx_t state_strin
 				break;
 			case ASN_FLOAT:
 				printf("Type FLOAT\n");
+				break;
 			case ASN_DOUBLE:
 				printf("Type DOUBLE\n");
 				break;



More information about the Commits mailing list