Fixed protocol-by-number loading.
diff --git a/iptables.c b/iptables.c
index 4854a7c..44250e1 100644
--- a/iptables.c
+++ b/iptables.c
@@ -1757,7 +1757,7 @@
+ m->size);
m->m = fw_calloc(1, size);
m->m->u.match_size = size;
- strcpy(m->m->u.user.name, optarg);
+ strcpy(m->m->u.user.name, m->name);
m->init(m->m, &fw.nfcache);
}
break;
@@ -1839,7 +1839,7 @@
m->m = fw_calloc(1, size);
m->m->u.match_size = size;
- strcpy(m->m->u.user.name, protocol);
+ strcpy(m->m->u.user.name, m->name);
m->init(m->m, &fw.nfcache);
optind--;