diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-12-06 16:19:01 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-12-06 16:19:01 +0000 |
commit | 0795848def0a66570eb724b93377bc839df33512 (patch) | |
tree | dd3ff07344ab7a71d0d2f1eb1ac5fc4d7b158011 /sshd.c | |
parent | fe1d100ffdf3595f3aaddc02efbf0b49a265d90c (diff) |
- deraadt@cvs.openbsd.org 2001/11/14 20:45:08
[sshd.c]
errno saving wrapping in a signal handler
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 | /* |