summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--sshd.c9
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 7522d9091..b7fdb00ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120010323
2 - OpenBSD CVS Sync
3 - deraadt@cvs.openbsd.org 2001/03/22 20:22:55
4 [sshd.c]
5 do not place linefeeds in buffer
6
120010322 720010322
2 - (djm) Better AIX no tty fix, spotted by Gert Doering <gert@greenie.muc.de> 8 - (djm) Better AIX no tty fix, spotted by Gert Doering <gert@greenie.muc.de>
3 - (bal) version.c CVS ID resync 9 - (bal) version.c CVS ID resync
@@ -4682,4 +4688,4 @@
4682 - Wrote replacements for strlcpy and mkdtemp 4688 - Wrote replacements for strlcpy and mkdtemp
4683 - Released 1.0pre1 4689 - Released 1.0pre1
4684 4690
4685$Id: ChangeLog,v 1.1008 2001/03/22 02:06:57 mouring Exp $ 4691$Id: ChangeLog,v 1.1009 2001/03/22 22:45:33 mouring Exp $
diff --git a/sshd.c b/sshd.c
index 384d4082d..d32e580c2 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.175 2001/03/18 23:30:55 deraadt Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.176 2001/03/22 20:22:55 deraadt Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -344,8 +344,7 @@ sshd_exchange_identification(int sock_in, int sock_out)
344 fatal_cleanup(); 344 fatal_cleanup();
345 } 345 }
346 if (buf[i] == '\r') { 346 if (buf[i] == '\r') {
347 buf[i] = '\n'; 347 buf[i] = 0;
348 buf[i + 1] = 0;
349 /* Kludge for F-Secure Macintosh < 1.0.2 */ 348 /* Kludge for F-Secure Macintosh < 1.0.2 */
350 if (i == 12 && 349 if (i == 12 &&
351 strncmp(buf, "SSH-1.5-W1.0", 12) == 0) 350 strncmp(buf, "SSH-1.5-W1.0", 12) == 0)
@@ -353,8 +352,7 @@ sshd_exchange_identification(int sock_in, int sock_out)
353 continue; 352 continue;
354 } 353 }
355 if (buf[i] == '\n') { 354 if (buf[i] == '\n') {
356 /* buf[i] == '\n' */ 355 buf[i] = 0;
357 buf[i + 1] = 0;
358 break; 356 break;
359 } 357 }
360 } 358 }
@@ -420,7 +418,6 @@ sshd_exchange_identification(int sock_in, int sock_out)
420 break; 418 break;
421 } 419 }
422 chop(server_version_string); 420 chop(server_version_string);
423 chop(client_version_string);
424 debug("Local version string %.200s", server_version_string); 421 debug("Local version string %.200s", server_version_string);
425 422
426 if (mismatch) { 423 if (mismatch) {