Package: iptables
Version: 1.4.12-1
Severity: normal
Tags: upstream patch

iptables-save does not save hex strings properly

-m string --hex-string"|535353535343534353ffd06668|"
as opposed to (note space after --hex-string):
-m string --hex-string "|535353535343534353ffd06668|"

causing an error on restore.




-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39.4-grsec (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iptables depends on:
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib
ii  libnfnetlink0                 1.0.0-1    Netfilter netlink library

iptables recommends no packages.

iptables suggests no packages.

-- no debconf information
--- extensions/libxt_string.c.orig	2011-07-22 08:37:34.000000000 -0400
+++ extensions/libxt_string.c	2011-08-11 03:41:00.000000000 -0400
@@ -228,7 +228,7 @@ print_hex_string(const char *str, const
 {
 	unsigned int i;
 	/* start hex block */
-	printf("\"|");
+	printf(" \"|");
 	for (i=0; i < len; i++) {
 		/* see if we need to prepend a zero */
 		if ((unsigned char) str[i] <= 0x0F)

Reply via email to