jimmywei
Joined: 10 Jan 2008 Posts: 8
|
Posted: Tue Apr 21, 2009 8:28 am Post subject: miniupnpd 20090214 reload_from_lease_file , lease_file_add |
|
|
Within reload_from_lease_file()
it opens lease file, then call upnp_redirect().
In this time, the file descriptor is still being used, not closed.
But upnp_redirect() will finally call lease_file_add() which
will open lease file with "a" to add the rule.
Would that cause any un-expected issue ?
Maybe we can move to the lease file to a temperately file in reload_from_lease_file() first ? |
|