From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: iptables-restore: fix segmentation fault with -tanything Date: Mon, 04 Aug 2008 12:51:50 +0200 Message-ID: <4896DF46.9070605@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter Developer Mailing List To: Jan Engelhardt Return-path: Received: from stinky.trash.net ([213.144.137.162]:51416 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752648AbYHDKvv (ORCPT ); Mon, 4 Aug 2008 06:51:51 -0400 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Jan Engelhardt wrote: > commit e075edd231346496d9e93477704a74c9c664bfc7 > Author: Michael Spang > Date: Sun Aug 3 15:00:26 2008 -0400 > > iptables-restore: fix segmentation fault with -tanything > > Reference: Debian bug #458042 > > iptables-restore must not pass a table into do_command. It checks for > "-t arg" and "--table arg", but not "-targ". (On a related note, > using -targ does not work as expected). > > This should fail gracefully, but crashes: > > iptables-restore <(echo -e '*filter\n-A INPUT -tx\nCOMMIT') > > And this should use table "filter", or perhaps raise an error, but > instead sets the table to (literally) "-tfilter": > > iptables -tfilter -A INPUT Applied, thanks.