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

GitHub git at monitoring-plugins.org
Tue Apr 7 13:20:12 CEST 2026


    Module: monitoring-plugins
    Branch: master
    Commit: 7c20cb97292a8207b0fe4e76425b62409be68b12
    Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
 Committer: GitHub <noreply at github.com>
      Date: Tue Apr  7 13:16:59 2026 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=7c20cb97

check_snmp: fixed falltrhough case in ASN_FLOAT/ASN_DOUBLE (#2249)

Co-authored-by: Andreas Baumann <mail at andreasbaumann.cc>

---

 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