[syslog-ng] [PATCH] afmongodb: Only free the value pairs if there's any.

Balazs Scheidler bazsi at balabit.hu
Mon Jan 16 21:19:58 CET 2012


On Thu, 2011-12-29 at 15:01 +0100, Gergely Nagy wrote:
> In afmongodb_dd_free() only free self->vp, if it is non-NULL. In case
> of a syntax error in the configuration file, it may very well be NULL
> still, and that would lead to us segfaulting shortly after printing
> the error message.
> 
> Signed-off-by: Gergely Nagy <algernon at balabit.hu>
> ---
>  modules/afmongodb/afmongodb.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Thanks Gergely, applied to 3.3

-- 
Bazsi




More information about the syslog-ng mailing list