[Nagiosplug-devel] beta2 check_mysql failure

Subhendu Ghosh sghosh at sghosh.org
Wed Nov 27 19:55:01 CET 2002


thanks

-sg 

On Wed, 27 Nov 2002, James Fidell wrote:

> 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