This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODRESTART: Defer restart to the event loop
When a remote MODRESTART command is received, it will pass through the ENCAP module. The ms_encap function is responsible for dispatching the command handler and then the modules will eventually be reloaded. However, if the ENCAP module is reloaded to a different address, the stack now contains the address of a function that no longer exists. Return immediately from the command handler and have the event loop call the function responsible for reloading the modules instead. Reported-by: mniip (Freenode)
- Loading branch information