Some sort of initialization is missing:
96 struct ebt_u_table *ebt_find_table(const char *name) 97 { 98 struct ebt_u_table *t = ebt_tables; 99 100 while (t && strcmp(t->name, name)) { 101 printf("t->name: %s name: %s", t->name, name); (gdb) n 98 struct ebt_u_table *t = ebt_tables; (gdb) n 100 while (t && strcmp(t->name, name)) { (gdb) p t $1 = (struct ebt_u_table *) 0x0 (gdb) p name $2 = 0x602100 <replace> "filter" (gdb) p ebt_tables $3 = (struct ebt_u_table *) 0x0
Some sort of initialization is missing:
96 struct ebt_u_table *ebt_find_ table(const char *name)
97 {
98 struct ebt_u_table *t = ebt_tables;
99
100 while (t && strcmp(t->name, name)) {
101 printf("t->name: %s name: %s", t->name, name);
(gdb) n
98 struct ebt_u_table *t = ebt_tables;
(gdb) n
100 while (t && strcmp(t->name, name)) {
(gdb) p t
$1 = (struct ebt_u_table *) 0x0
(gdb) p name
$2 = 0x602100 <replace> "filter"
(gdb) p ebt_tables
$3 = (struct ebt_u_table *) 0x0