summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--packet.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e0c681ba..a2d2045af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,9 @@
30 - jmc@cvs.openbsd.org 2009/02/12 07:34:20 30 - jmc@cvs.openbsd.org 2009/02/12 07:34:20
31 [ssh_config.5] 31 [ssh_config.5]
32 kill trailing whitespace; 32 kill trailing whitespace;
33 - markus@cvs.openbsd.org 2009/02/13 11:50:21
34 [packet.c]
35 check for enc !=NULL in packet_start_discard
33 36
3420090212 3720090212
35 - (djm) [sshpty.c] bz#1419: OSX uses cloning ptys that automagically 38 - (djm) [sshpty.c] bz#1419: OSX uses cloning ptys that automagically
@@ -5156,5 +5159,5 @@
5156 OpenServer 6 and add osr5bigcrypt support so when someone migrates 5159 OpenServer 6 and add osr5bigcrypt support so when someone migrates
5157 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 5160 passwords between UnixWare and OpenServer they will still work. OK dtucker@
5158 5161
5159$Id: ChangeLog,v 1.5193 2009/02/14 05:34:39 djm Exp $ 5162$Id: ChangeLog,v 1.5194 2009/02/14 05:35:01 djm Exp $
5160 5163
diff --git a/packet.c b/packet.c
index 33559cd4f..5afc84ce0 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.159 2009/01/26 09:58:15 markus Exp $ */ 1/* $OpenBSD: packet.c,v 1.160 2009/02/13 11:50:21 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
@@ -236,7 +236,7 @@ packet_stop_discard(void)
236static void 236static void
237packet_start_discard(Enc *enc, Mac *mac, u_int packet_length, u_int discard) 237packet_start_discard(Enc *enc, Mac *mac, u_int packet_length, u_int discard)
238{ 238{
239 if (!cipher_is_cbc(enc->cipher)) 239 if (enc == NULL || !cipher_is_cbc(enc->cipher))
240 packet_disconnect("Packet corrupt"); 240 packet_disconnect("Packet corrupt");
241 if (packet_length != PACKET_MAX_SIZE && mac && mac->enabled) 241 if (packet_length != PACKET_MAX_SIZE && mac && mac->enabled)
242 packet_discard_mac = mac; 242 packet_discard_mac = mac;