vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Blob Blame History Raw
diff -up openssh-6.8p1/packet.c.packet openssh-6.8p1/packet.c
--- openssh-6.8p1/packet.c.packet	2015-03-18 10:56:32.286930601 +0100
+++ openssh-6.8p1/packet.c	2015-03-18 10:58:38.535629739 +0100
@@ -371,6 +371,8 @@ ssh_packet_connection_is_on_socket(struc
 	struct sockaddr_storage from, to;
 	socklen_t fromlen, tolen;
 
+	if (!state)
+		return 0;
 	if (state->connection_in == -1 || state->connection_out == -1)
 		return 0;