rcolebaugh / rpms / openssh

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