Code

Command line argument bug (Howard Wilkinson)
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 31 Mar 2004 22:53:25 +0000 (22:53 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 31 Mar 2004 22:53:25 +0000 (22:53 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@861 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_nt.c

index 50bf9f03c485be64c557a59c4ec6fcc052cd1986..605d4792b84b282f6a5b438f4dd6679a19f7e4d5 100644 (file)
@@ -180,7 +180,7 @@ int main(int argc, char **argv){
 
                if (value_list==NULL)
                        output_message = strdup (_("missing -l parameters"));
-               else if (strlen(value_list)==1)
+               else if (strlen(value_list)!=1)
                        output_message = strdup (_("wrong -l argument"));
                else {
                        asprintf(&send_buffer,"%s&4&%s", req_password, value_list);