coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

radius/redir: Fix usage of already closed fd and stream used in logging #168

Closed ynezz closed 8 years ago

ynezz commented 8 years ago

It's a fix for a bug I've introduced in b7190800b. Using fd/stream after close/fclose is not a good idea, at least not much helpful for debugging as fileno() would return always -1 on the invalid stream.

Thanks to Sevan for noticing it.

Signed-off-by: Petr Štetiar ynezz@true.cz