bmh10 / rpms / openssh

Forked from rpms/openssh 10 days ago
Clone
8f2528
diff -up openssh-5.8p1/packet.c.packet openssh-5.8p1/packet.c
8f2528
--- openssh-5.8p1/packet.c.packet	2011-04-05 13:29:06.998648899 +0200
8f2528
+++ openssh-5.8p1/packet.c	2011-04-05 13:30:32.967648596 +0200
8f2528
@@ -294,6 +294,8 @@ packet_connection_is_on_socket(void)
8f2528
 	struct sockaddr_storage from, to;
8f2528
 	socklen_t fromlen, tolen;
8f2528
 
8f2528
+	if (!state)
8f2528
+		return 0;
8f2528
 	if (state->connection_in == -1 || state->connection_out == -1)
8f2528
 		return 0;
8f2528