From a7b1d2b060eff806ddc5ebb2e78df8f51c1c67d4 Mon Sep 17 00:00:00 2001 From: Matthew Kent Date: Sun, 5 Dec 2004 22:07:30 +0000 Subject: [PATCH] Fix for -s string matching (#756567, Tony Missana) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1006 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 6fae3d1..ab110fb 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -259,7 +259,7 @@ main (int argc, char **argv) /* Process this block for string matching */ else if (eval_method[i] & CRIT_STRING) { - if (strcmp (response, string_value)) + if (strcmp (show, string_value)) iresult = STATE_CRITICAL; else iresult = STATE_OK; -- 2.30.2