f09e2e
diff -up openssh-5.8p1/packet.c.packet openssh-5.8p1/packet.c
f09e2e
--- openssh-5.8p1/packet.c.packet	2011-04-05 13:29:06.998648899 +0200
f09e2e
+++ openssh-5.8p1/packet.c	2011-04-05 13:30:32.967648596 +0200
f09e2e
@@ -294,6 +294,8 @@ packet_connection_is_on_socket(void)
f09e2e
 	struct sockaddr_storage from, to;
f09e2e
 	socklen_t fromlen, tolen;
f09e2e
 
f09e2e
+	if (!active_state)
f09e2e
+		return 0;
f09e2e
 	/* filedescriptors in and out are the same, so it's a socket */
f09e2e
 	if (active_state->connection_in == active_state->connection_out)
f09e2e
 		return 1;