Fix get_portmappings_in_range() in non-expand case.

In get_portmappings_in_range(), array[] is not updated when
realloc() is not called, hence get_portmappings_in_range() is
always null. This fix changes to fill array[].
This commit is contained in:
Tomofumi Hayashi 2015-03-09 17:33:10 +09:00
parent eb72ab5330
commit 3b472b59e0
1 changed files with 2 additions and 2 deletions

View File

@ -1434,13 +1434,13 @@ get_portmappings_in_range(unsigned short startport, unsigned short endport,
break;
}
array = tmp;
}
array[*number] = eport;
(*number)++;
}
}
}
}
}
if(h)
#ifdef IPTABLES_143
iptc_free(h);