summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-03-31 22:53:25 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2004-03-31 22:53:25 +0000
commit372859d8bf67f006d67a8a5a6c7003a06598c595 (patch)
tree1621fd8d0fcdbeceeb6c4fd72c69d9d262181fbc
parentf745ed4bc3263aa70d8f85d04fb2d2b35e9d555a (diff)
downloadmonitoring-plugins-372859d8bf67f006d67a8a5a6c7003a06598c595.tar.gz
Command line argument bug (Howard Wilkinson)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@861 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 50bf9f03..605d4792 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -180,7 +180,7 @@ int main(int argc, char **argv){
180 180
181 if (value_list==NULL) 181 if (value_list==NULL)
182 output_message = strdup (_("missing -l parameters")); 182 output_message = strdup (_("missing -l parameters"));
183 else if (strlen(value_list)==1) 183 else if (strlen(value_list)!=1)
184 output_message = strdup (_("wrong -l argument")); 184 output_message = strdup (_("wrong -l argument"));
185 else { 185 else {
186 asprintf(&send_buffer,"%s&4&%s", req_password, value_list); 186 asprintf(&send_buffer,"%s&4&%s", req_password, value_list);