[Syslog-ng-commit] syslog-ng--mainline: Forward port: fixed
possible NULL deref on destination connection broken,
fixed EOF detection
Balazs Scheidler
bazsi at balabit.hu
Wed Oct 25 10:20:19 CEST 2006
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.1--patch-18>
Revision: syslog-ng--mainline--2.1--patch-18
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Wed Oct 25 10:20:17 CEST 2006
Standard-date: 2006-10-25 08:20:17 GMT
Modified-files: ChangeLog src/logwriter.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-84
devel at balabit.hu--other-1/syslog-ng--mainline--2.1--patch-18
Summary: Forward port: fixed possible NULL deref on destination connection broken, fixed EOF detection
Keywords:
2006-10-21 Balazs Scheidler <bazsi at balabit.hu>
* src/logwriter.c (log_writer_fd_prepare): when EOF detection is
enabled specify G_IO_IN and G_IO_HUP in addition to normal flags,
(log_writer_fd_dispatch): input on the destination fd is taken as EOF,
(log_writer_broken): _deinit is moved after the call to notify,
should not matter at all however the reference counting depends on
the fact that log_pipe_notify() will not be called after _deinit
finishes, in this specific case it would not really matter,
(log_writer_deinit): remove unref of self->control,
(log_writer_new): self->control is a borrowed reference, don't
increase refcount
Diff stats:
ChangeLog | 29 +++++++++++++++++++++++++++++
src/logwriter.c | 12 +++++-------
2 files changed, 34 insertions(+), 7 deletions(-)
More information about the Syslog-ng-commit
mailing list