[syslog-ng] segfaults with 1.9.x series syslog-ng and stream socket

Balazs Scheidler bazsi at balabit.hu
Wed Jun 28 14:10:28 CEST 2006


On Wed, 2006-06-28 at 14:06 +0200, Balazs Scheidler wrote:
> On Fri, 2006-06-23 at 18:42 -0400, func tionate wrote:

> The patch below should fix this issue:
> 
> --- orig/src/afunix.c
> +++ mod/src/afunix.c
> @@ -110,7 +110,7 @@ afunix_dd_new(gchar *filename, guint fla
>    AFUnixDestDriver *self = g_new0(AFUnixDestDriver, 1);
> 
>    afsocket_dd_init_instance(&self->super, &self->sock_options, flags);
> -  self->super.bind_addr = NULL;
> +  self->super.bind_addr = g_sockaddr_unix_new(NULL);
>    self->super.dest_addr = g_sockaddr_unix_new(filename);
>    return &self->super.super;
>  }

I have also committed this patch, so the fix should be available by
tomorrow.

-- 
Bazsi



More information about the syslog-ng mailing list