summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
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/*