diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | sshd.c | 5 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20011205 | ||
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 | |||
1 | 20011126 | 7 | 20011126 |
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 $ |
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.209 2001/11/10 13:19:45 markus Exp $"); | 43 | RCSID("$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) | |||
211 | static void | 211 | static void |
212 | sighup_handler(int sig) | 212 | sighup_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 | /* |