diff options
author | Harald Welte <laforge@gnumonks.org> | 2001-11-08 22:28:23 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2001-11-08 22:28:23 +0000 |
commit | 9535e687b3b5756ca7afec273d25cffdd62f653d (patch) | |
tree | 3198570b3ddb3fccdfddb3eb83205263d88709a0 /iptables-save.c | |
parent | 7602984ecdeb9178a86015d8c78aad7238215c36 (diff) |
make sure we print the "+" at the end of ppp+ stype interface names
Diffstat (limited to 'iptables-save.c')
-rw-r--r-- | iptables-save.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables-save.c b/iptables-save.c index bf75d5e0..c25e636c 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -48,7 +48,9 @@ print_iface(char letter, const char *iface, const unsigned char *mask, if (iface[i] != '\0') printf("%c", iface[i]); } else { - if (iface[i] != '\0') + /* we can access iface[i-1] here, because + * a few lines above we make sure that mask[0] != 0 */ + if (iface[i-1] != '\0') printf("+"); break; } |