[Nagiosplug-checkins] CVS: nagiosplug/plugins check_mysql.c,1.4,1.5

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jan 27 23:27:03 CET 2003


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

Modified Files:
	check_mysql.c 
Log Message:
missed argc check on port parameter

Index: check_mysql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mysql.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** check_mysql.c	16 Jan 2003 06:42:24 -0000	1.4
--- check_mysql.c	28 Jan 2003 07:26:05 -0000	1.5
***************
*** 208,212 ****
  		db = argv[c++];
  
! 	if (is_intnonneg (argv[c]))
  		db_port = atoi (argv[c++]);
  
--- 208,212 ----
  		db = argv[c++];
  
! 	if (is_intnonneg (argv[c]) && argc > c)
  		db_port = atoi (argv[c++]);
  





More information about the Commits mailing list