On Wednesday 22 August 2007 13:05, Martin Simmons wrote:
> I get a segv in chat() when running
>
> ./bsmtp -d10 nobody
>
> on x86_64 FC3. I think the problem is that two calls to vfprintf() are
> made with only one call to va_start().
>
> This patch fixes it, assuming it is valid to call va_start() a second time:
>
> Index: src/tools/bsmtp.c
> ===================================================================
> --- src/tools/bsmtp.c (revision 5396)
> +++ src/tools/bsmtp.c (working copy)
> @@ -136,11 +136,13 @@
>
> va_start(ap, fmt);
> vfprintf(sfp, fmt, ap);
> + va_end(ap);
> if (debug_level >= 10) {
> fprintf(stdout, "%s --> ", my_hostname);
> + va_start(ap, fmt);
> vfprintf(stdout, fmt, ap);
> + va_end(ap);
> }
> - va_end(ap);
>
> fflush(sfp);
> if (debug_level >= 10) {
Thanks. I have applied your patch.
Regards,
Kern
>
> __Martin
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bacula-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel