[ssh.c]
     avoid errno trashing in signal handler; ok dtucker
This commit is contained in:
Darren Tucker 2007-12-02 23:22:52 +11:00
parent e143f062ba
commit 06321f5d1d
2 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,9 @@
- dtucker@cvs.openbsd.org 2007/11/03 02:00:32 - dtucker@cvs.openbsd.org 2007/11/03 02:00:32
[ssh.c] [ssh.c]
Use xstrdup/xfree when saving pwname and pwdir; ok deraadt@ Use xstrdup/xfree when saving pwname and pwdir; ok deraadt@
- deraadt@cvs.openbsd.org 2007/11/03 02:03:49
[ssh.c]
avoid errno trashing in signal handler; ok dtucker
20071030 20071030
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync
@ -3455,4 +3458,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@ passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.4805 2007/12/02 12:21:16 dtucker Exp $ $Id: ChangeLog,v 1.4806 2007/12/02 12:22:52 dtucker Exp $

6
ssh.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: ssh.c,v 1.307 2007/11/03 02:00:32 dtucker Exp $ */ /* $OpenBSD: ssh.c,v 1.308 2007/11/03 02:03:49 deraadt Exp $ */
/* /*
* Author: Tatu Ylonen <ylo@cs.hut.fi> * Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -1294,8 +1294,12 @@ control_client_sighandler(int signo)
static void static void
control_client_sigrelay(int signo) control_client_sigrelay(int signo)
{ {
int save_errno = errno;
if (control_server_pid > 1) if (control_server_pid > 1)
kill(control_server_pid, signo); kill(control_server_pid, signo);
errno = save_errno;
} }
static int static int