Re: per session access to drives

Eric.Schenk@dna.lth.se
Mon, 12 May 1997 20:44:31 +0200


The following patch should be applied over pre-2.0.31 to prevent
a memory leak and probably crash when using SYN cookies. Please
apply this patch if you are testing pre-2.0.31.

Thanks,

diff -u -r1.19.2.15 -r1.19.2.16
--- tcp_output.c 1997/05/06 13:43:19 1.19.2.15
+++ tcp_output.c 1997/05/08 20:25:39 1.19.2.16
@@ -1004,7 +1004,10 @@
}
#endif
tcp_send_check(t1, newsk->saddr, newsk->daddr, sizeof(*t1)+4, buff);
- newsk->prot->queue_xmit(newsk, ndev, buff, destroy);
+ if (destroy)
+ newsk->prot->queue_xmit(NULL, ndev, buff, 1);
+ else
+ newsk->prot->queue_xmit(newsk, ndev, buff, 0);


#ifdef CONFIG_SYN_COOKIES

--
Eric Schenk                               www: http://www.dna.lth.se/~erics
Dept. of Comp. Sci., Lund University          email: Eric.Schenk@dna.lth.se
Box 118, S-221 00 LUND, Sweden   fax: +46-46 13 10 21  ph: +46-46 222 96 38