Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hlin
opensuse
openssh-CVE-2006-5051.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssh-CVE-2006-5051.patch of Package opensuse
=================================================================== RCS file: /usr/OpenBSD/cvs/src/usr.bin/ssh/log.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/ssh/log.c 2006/08/03 03:34:42 1.38 +++ src/usr.bin/ssh/log.c 2006/08/18 09:13:25 1.39 @@ -127,6 +127,18 @@ va_end(args); } +void +sigdie(const char *fmt,...) +{ + va_list args; + + va_start(args, fmt); + do_log(SYSLOG_LEVEL_FATAL, fmt, args); + va_end(args); + _exit(1); +} + + /* Log this message (information that usually should go to the log). */ void =================================================================== RCS file: /usr/OpenBSD/cvs/src/usr.bin/ssh/log.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/ssh/log.h 2006/08/03 03:34:42 1.14 +++ src/usr.bin/ssh/log.h 2006/08/18 09:13:25 1.15 @@ -50,6 +50,7 @@ void fatal(const char *, ...) __dead __attribute__((format(printf, 1, 2))); void error(const char *, ...) __attribute__((format(printf, 1, 2))); +void sigdie(const char *, ...) __attribute__((format(printf, 1, 2))); void logit(const char *, ...) __attribute__((format(printf, 1, 2))); void verbose(const char *, ...) __attribute__((format(printf, 1, 2))); void debug(const char *, ...) __attribute__((format(printf, 1, 2))); =================================================================== RCS file: /usr/OpenBSD/cvs/src/usr.bin/ssh/sshd.c,v retrieving revision 1.345 retrieving revision 1.346 diff -u -r1.345 -r1.346 --- src/usr.bin/ssh/sshd.c 2006/08/16 11:47:15 1.345 +++ src/usr.bin/ssh/sshd.c 2006/08/18 09:13:26 1.346 @@ -331,13 +331,11 @@ static void grace_alarm_handler(int sig) { - /* XXX no idea how fix this signal handler */ - if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) kill(pmonitor->m_pid, SIGALRM); /* Log error and exit. */ - fatal("Timeout before authentication for %s", get_remote_ipaddr()); + sigdie("Timeout before authentication for %s", get_remote_ipaddr()); } /*
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor