]> andersk Git - openssh.git/blobdiff - packet.c
- markus@cvs.openbsd.org 2009/02/13 11:50:21
[openssh.git] / packet.c
index 33559cd4f557c59b6fe1db6517057f5bc1d2c629..5afc84ce0bc22715ae03d01f3131366c9f47817d 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.159 2009/01/26 09:58:15 markus Exp $ */
+/* $OpenBSD: packet.c,v 1.160 2009/02/13 11:50:21 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -236,7 +236,7 @@ packet_stop_discard(void)
 static void
 packet_start_discard(Enc *enc, Mac *mac, u_int packet_length, u_int discard)
 {
-       if (!cipher_is_cbc(enc->cipher))
+       if (enc == NULL || !cipher_is_cbc(enc->cipher))
                packet_disconnect("Packet corrupt");
        if (packet_length != PACKET_MAX_SIZE && mac && mac->enabled)
                packet_discard_mac = mac;
This page took 0.083521 seconds and 4 git commands to generate.