Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > b9ce35bcd1a6219ce1b548a9fd7610a4 > files > 4

xinetd-2.3.14-33.fc13.src.rpm

244063: RHEL4 SIGSEGV in xinetd when application's logfile hit size limit

Written-By: Jan Safranek <jsafrane@redhat.com>

Initialize xl_callback_arg, so xinetd does not crash when it gets dereferenced.

diff -up xinetd-2.3.13/libs/src/xlog/xlog.c.orig xinetd-2.3.13/libs/src/xlog/xlog.c
--- xinetd-2.3.13/libs/src/xlog/xlog.c.orig	2003-05-31 23:58:58.000000000 +0200
+++ xinetd-2.3.13/libs/src/xlog/xlog.c	2007-12-05 15:31:08.000000000 +0100
@@ -216,6 +216,7 @@ int xlog_control( xlog_h pxlog, xlog_cmd
 		
 		case XLOG_CALLBACK:
 			xp->xl_callback = va_arg( ap, voidfunc ) ;
+			xp->xl_callback_arg = va_arg( ap, void * );
 			break ;
 			
 		case XLOG_GETFLAG: