mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 23:49:03 +00:00
Fill epoll_event structures with zeros before use.
This commit is contained in:
@@ -164,6 +164,7 @@ int epoll_iod_register(mspool *nsp, msiod *iod, int ev) {
|
||||
|
||||
iod->watched_events = ev;
|
||||
|
||||
memset(&epev, 0x00, sizeof(struct epoll_event));
|
||||
epev.events = EPOLLET;
|
||||
epev.data.ptr = (void *)iod;
|
||||
|
||||
@@ -207,6 +208,7 @@ int epoll_iod_modify(mspool *nsp, msiod *iod, int ev_set, int ev_clr) {
|
||||
|
||||
assert((ev_set & ev_clr) == 0);
|
||||
|
||||
memset(&epev, 0x00, sizeof(struct epoll_event));
|
||||
epev.events = EPOLLET;
|
||||
epev.data.ptr = (void *)iod;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user