openssh/openssh-5.8p1-packet.patch

13 lines
481 B
Diff
Raw Normal View History

2015-03-20 13:56:04 +00:00
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;
2015-03-20 13:56:04 +00:00
+ if (!state)
+ return 0;
/* filedescriptors in and out are the same, so it's a socket */
2015-03-20 13:56:04 +00:00
if (state->connection_in == state->connection_out)
return 1;