Code

Fix for -s string matching (#756567, Tony Missana)
authorMatthew Kent <mattkent@users.sourceforge.net>
Sun, 5 Dec 2004 22:07:30 +0000 (22:07 +0000)
committerMatthew Kent <mattkent@users.sourceforge.net>
Sun, 5 Dec 2004 22:07:30 +0000 (22:07 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1006 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_snmp.c

index 6fae3d1f81b03db0e9e609ed0b70c49b3b4dff05..ab110fbd0fb86c0593f92ac191127754c973a46c 100644 (file)
@@ -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;