]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_hashlimit does a wrong SEQ_SKIP
authorJesper Dangaard Brouer <hawk@comx.dk>
Wed, 27 May 2009 13:45:34 +0000 (15:45 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 27 May 2009 13:45:34 +0000 (15:45 +0200)
commitcbf7479b966453b1eea76e9a24303aacef12aa60
tree1d8770a96cdb13de12e297a99d03c6063320030d
parentfed51c78390ca173b34693473f101ce2a8bda65e
netfilter: xt_hashlimit does a wrong SEQ_SKIP

The function dl_seq_show() returns 1 (equal to SEQ_SKIP) in case
a seq_printf() call return -1.  It should return -1.

This SEQ_SKIP behavior brakes processing the proc file e.g. via a
pipe or just through less.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_hashlimit.c