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:
parent
eb72ab5330
commit
3b472b59e0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue