]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - openssh/patches/openssh-5.8p1-packet.patch
Merge remote-tracking branch 'maniacikarus/ids'
[people/arne_f/ipfire-3.x.git] / openssh / patches / openssh-5.8p1-packet.patch
CommitLineData
9d8fd3ad
SS
1diff -up openssh-5.8p1/packet.c.packet openssh-5.8p1/packet.c
2--- openssh-5.8p1/packet.c.packet 2011-04-05 13:29:06.998648899 +0200
3+++ openssh-5.8p1/packet.c 2011-04-05 13:30:32.967648596 +0200
4@@ -294,6 +294,8 @@ packet_connection_is_on_socket(void)
5 struct sockaddr_storage from, to;
6 socklen_t fromlen, tolen;
7
8+ if (!active_state)
9+ return 0;
10 /* filedescriptors in and out are the same, so it's a socket */
11 if (active_state->connection_in == active_state->connection_out)
12 return 1;