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,9 +1434,9 @@ get_portmappings_in_range(unsigned short startport, unsigned short endport,
|
|||
break;
|
||||
}
|
||||
array = tmp;
|
||||
array[*number] = eport;
|
||||
(*number)++;
|
||||
}
|
||||
array[*number] = eport;
|
||||
(*number)++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue