132f8f
diff -up openssh-6.8p1/packet.c.packet openssh-6.8p1/packet.c
132f8f
--- openssh-6.8p1/packet.c.packet	2015-03-18 10:56:32.286930601 +0100
132f8f
+++ openssh-6.8p1/packet.c	2015-03-18 10:58:38.535629739 +0100
132f8f
@@ -371,6 +371,8 @@ ssh_packet_connection_is_on_socket(struc
Jan F 8bc65c
 	struct sockaddr_storage from, to;
Jan F 8bc65c
 	socklen_t fromlen, tolen;
Jan F 8bc65c
 
132f8f
+	if (!state)
Jan F 8bc65c
+		return 0;
5878eb
 	if (state->connection_in == -1 || state->connection_out == -1)
5878eb
 		return 0;
5878eb