[Nagiosplug-checkins] CVS: nagiosplug/plugins check_nt.c,1.6,1.7

Ton Voon tonvoon at users.sourceforge.net
Sun Feb 16 00:26:05 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv7159

Modified Files:
	check_nt.c 
Log Message:
Coredump if no variable set (reported by Marc C. Poulin)


Index: check_nt.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nt.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** check_nt.c	31 Jan 2003 18:36:06 -0000	1.6
--- check_nt.c	16 Feb 2003 08:25:58 -0000	1.7
***************
*** 506,509 ****
--- 506,512 ----
  	}
  
+ 	if (vars_to_check==CHECK_NONE)
+ 		return ERROR;
+ 
  	return OK;
  }
***************
*** 512,516 ****
  void print_usage(void)
  {
! 	printf("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
  }
  
--- 515,519 ----
  void print_usage(void)
  {
! 	printf("Usage: %s -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
  }
  





More information about the Commits mailing list