coova / coova-chilli

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

Fix session handling on DHCP NAK packets #486

Closed nathanel23 closed 5 years ago

nathanel23 commented 5 years ago

The macro redir_memcopy expands to multiple statements. However, one of if-blocks where it is used lacks braces for the code block. This results in parts of the macro being executed even if not intended and triggers a compiler warning on modern GCC versions.