[Nagiosplug-devel] beta2 check_mysql failure

James Fidell james at cloud9.co.uk
Wed Nov 27 09:47:06 CET 2002


check_mysql from 1.3.0 beta2 dumps for core me in process_arguments.
I believe the following is a correct patch:

--- check_mysql.c.orig  Wed Nov 27 17:41:56 2002
+++ check_mysql.c       Wed Nov 27 17:41:59 2002
@@ -207,7 +207,7 @@
        if (strlen(db) == 0 && argc > c)
                db = argv[c++];
 
-       if (is_intnonneg (argv[c]))
+       if ( argc > c && is_intnonneg (argv[c]))
                db_port = atoi (argv[c++]);
 
        return validate_arguments ();


James




More information about the Devel mailing list