vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jakub Jelen 132f8f
diff -up openssh-6.8p1/packet.c.packet openssh-6.8p1/packet.c
Jakub Jelen 132f8f
--- openssh-6.8p1/packet.c.packet	2015-03-18 10:56:32.286930601 +0100
Jakub Jelen 132f8f
+++ openssh-6.8p1/packet.c	2015-03-18 10:58:38.535629739 +0100
Jakub Jelen 132f8f
@@ -371,6 +371,8 @@ ssh_packet_connection_is_on_socket(struc
Jan F 8bc65c
 	struct sockaddr_storage from, to;
Jan F 8bc65c
 	socklen_t fromlen, tolen;
Jan F 8bc65c
 
Jakub Jelen 132f8f
+	if (!state)
Jan F 8bc65c
+		return 0;
Jan F 8bc65c
 	/* filedescriptors in and out are the same, so it's a socket */
Jakub Jelen 132f8f
 	if (state->connection_in == state->connection_out)
Jan F 8bc65c
 		return 1;