summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:23:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-23 21:23:20 +0000
commit5c3855210ef20be5931d4b58f641d71bc3b203e8 (patch)
treede100fe07cedd57448d9d4bd5bd23fa602c408b7 /sshd.c
parent836f0e9d9a847ad0510ff50b2bedc58e295e0913 (diff)
- deraadt@cvs.openbsd.org 2002/06/23 03:30:58
[scard.c ssh-dss.c ssh-rsa.c sshconnect.c sshconnect2.c sshd.c sshlogin.c sshpty.c] various KNF and %d for unsigned
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index 6b29e7094..473b31670 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.248 2002/06/22 20:05:27 stevesk Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.249 2002/06/23 03:30:17 deraadt Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -372,7 +372,8 @@ sshd_exchange_identification(int sock_in, int sock_out)
372 372
373 if (client_version_string == NULL) { 373 if (client_version_string == NULL) {
374 /* Send our protocol version identification. */ 374 /* Send our protocol version identification. */
375 if (atomicio(write, sock_out, server_version_string, strlen(server_version_string)) 375 if (atomicio(write, sock_out, server_version_string,
376 strlen(server_version_string))
376 != strlen(server_version_string)) { 377 != strlen(server_version_string)) {
377 log("Could not write ident string to %s", get_remote_ipaddr()); 378 log("Could not write ident string to %s", get_remote_ipaddr());
378 fatal_cleanup(); 379 fatal_cleanup();
@@ -475,7 +476,6 @@ sshd_exchange_identification(int sock_in, int sock_out)
475 } 476 }
476} 477}
477 478
478
479/* Destroy the host and server keys. They will no longer be needed. */ 479/* Destroy the host and server keys. They will no longer be needed. */
480void 480void
481destroy_sensitive_data(void) 481destroy_sensitive_data(void)