vishalmishra434 / rpms / openssh

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