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

Andreas Baumann git at monitoring-plugins.org
Fri Jan 23 09:00:12 CET 2026


 Module: monitoring-plugins
 Branch: check_snmp_fixes
 Commit: 9d14a90f356e1bdd48a9f551c2357684e96f1055
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Fri Jan 23 08:59:52 2026 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=9d14a90f

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 52090bf8..0f62ce8b 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