summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--sshd.c5
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a7b4ccb5..f6ec3bd1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120011205
2 - (bal) OpenBSD CVS Sync
3 - deraadt@cvs.openbsd.org 2001/11/14 20:45:08
4 [sshd.c]
5 errno saving wrapping in a signal handler
6
120011126 720011126
2 - (tim) [contrib/cygwin/README, openbsd-compat/bsd-cygwin_util.c, 8 - (tim) [contrib/cygwin/README, openbsd-compat/bsd-cygwin_util.c,
3 openbsd-compat/bsd-cygwin_util.h, openbsd-compat/daemon.c] 9 openbsd-compat/bsd-cygwin_util.h, openbsd-compat/daemon.c]
@@ -6919,4 +6925,4 @@
6919 - Wrote replacements for strlcpy and mkdtemp 6925 - Wrote replacements for strlcpy and mkdtemp
6920 - Released 1.0pre1 6926 - Released 1.0pre1
6921 6927
6922$Id: ChangeLog,v 1.1666 2001/11/27 01:19:43 tim Exp $ 6928$Id: ChangeLog,v 1.1667 2001/12/06 16:19:01 mouring Exp $
diff --git a/sshd.c b/sshd.c
index 71a5c2c2e..f81597f1d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.209 2001/11/10 13:19:45 markus Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.210 2001/11/14 20:45:08 deraadt Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -211,8 +211,11 @@ close_listen_socks(void)
211static void 211static void
212sighup_handler(int sig) 212sighup_handler(int sig)
213{ 213{
214 int save_errno = errno;
215
214 received_sighup = 1; 216 received_sighup = 1;
215 signal(SIGHUP, sighup_handler); 217 signal(SIGHUP, sighup_handler);
218 errno = save_errno;
216} 219}
217 220
218/* 221/*