summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-12-06 16:19:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-12-06 16:19:01 +0000
commit0795848def0a66570eb724b93377bc839df33512 (patch)
treedd3ff07344ab7a71d0d2f1eb1ac5fc4d7b158011 /sshd.c
parentfe1d100ffdf3595f3aaddc02efbf0b49a265d90c (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.c5
1 files changed, 4 insertions, 1 deletions
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/*