diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-09-21 13:00:25 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-09-21 13:00:25 +1000 |
commit | 4aa665b71c72666e23c318046835c3e0712d7e88 (patch) | |
tree | d6af2e73e8b3804b1ec0e8d62d0a089134da8eab | |
parent | 1e80e4023bce285ef4858383b5064b9ac3b254c1 (diff) |
- markus@cvs.openbsd.org 2006/09/19 21:14:08
[packet.c]
client NULL deref on protocol error; Tavis Ormandy, Google Security Team
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | packet.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -5,6 +5,9 @@ | |||
5 | Use S_IS* macros insted of masking with S_IF* flags. The latter may | 5 | Use S_IS* macros insted of masking with S_IF* flags. The latter may |
6 | have multiple bits set, which lead to surprising results. Spotted by | 6 | have multiple bits set, which lead to surprising results. Spotted by |
7 | Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@ | 7 | Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@ |
8 | - markus@cvs.openbsd.org 2006/09/19 21:14:08 | ||
9 | [packet.c] | ||
10 | client NULL deref on protocol error; Tavis Ormandy, Google Security Team | ||
8 | 11 | ||
9 | 20060918 | 12 | 20060918 |
10 | - (dtucker) [configure.ac] On AIX, check to see if the compiler will allow | 13 | - (dtucker) [configure.ac] On AIX, check to see if the compiler will allow |
@@ -5465,4 +5468,4 @@ | |||
5465 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5468 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5466 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5469 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5467 | 5470 | ||
5468 | $Id: ChangeLog,v 1.4553 2006/09/21 02:59:33 dtucker Exp $ | 5471 | $Id: ChangeLog,v 1.4554 2006/09/21 03:00:25 dtucker Exp $ |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.144 2006/09/16 19:53:37 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.145 2006/09/19 21:14:08 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -691,6 +691,9 @@ packet_enable_delayed_compress(void) | |||
691 | */ | 691 | */ |
692 | after_authentication = 1; | 692 | after_authentication = 1; |
693 | for (mode = 0; mode < MODE_MAX; mode++) { | 693 | for (mode = 0; mode < MODE_MAX; mode++) { |
694 | /* protocol error: USERAUTH_SUCCESS received before NEWKEYS */ | ||
695 | if (newkeys[mode] == NULL) | ||
696 | continue; | ||
694 | comp = &newkeys[mode]->comp; | 697 | comp = &newkeys[mode]->comp; |
695 | if (comp && !comp->enabled && comp->type == COMP_DELAYED) { | 698 | if (comp && !comp->enabled && comp->type == COMP_DELAYED) { |
696 | packet_init_compression(); | 699 | packet_init_compression(); |