[syslog-ng] syslog-ng 1.1.24

Balazs Scheidler bazsi@balabit.hu
Thu, 10 Jun 1999 16:18:47 +0200


On Thu, Jun 10, 1999 at 09:58:07AM -0400, Rob Cermak wrote:
> 
> I hunted down the scheme shell and installed it.   Grabbed the .24
> and compiled.   Still segv on attempts to log any message in Solaris 2.6.
> 
> I'm currently using tcp_wrappers, just wondering if that has any side
> effects.  I can cause syslog-ng to dump when I telnet from a machine that
> does not have access -- thus causing a security message to be sent
> to the logger.
> 
> Looks like null pointer information being passed to c_format in
> afdoor.c:

please try the following patch.


diff -urN syslog-ng-1.1.24/src/afdoor.c syslog-ng-1.1.25/src/afdoor.c
--- syslog-ng-1.1.24/src/afdoor.c       Sun Jun  6 13:36:17 1999
+++ syslog-ng-1.1.25/src/afdoor.c       Thu Jun 10 16:13:20 1999
@@ -51,8 +51,10 @@
 void afdoor_server_proc(void *cookie, char *argp, size_t arg_size, door_desc_t *dp, size_t n_desc)
 {
        CAST(afdoor_source, handler, cookie);
-       struct log_info *msg = make_log_info(c_format(argp, arg_size));
-       HANDLE_LOG(handler, msg);
+       if (argp) {
+               struct log_info *msg = make_log_info(c_format("%z", argp, arg_size));
+               HANDLE_LOG(handler, msg);
+       }
 }

 static int do_init_afdoor_source(struct log_handler *c, struct syslog_conf *cfg)


-- 
Bazsi
PGP key: http://www.balabit.hu/pgpkey.txt, or finger bazsi@balabit.hu