mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fill epoll_event structures with zeros before use.
This commit is contained in:
parent
a2c4f53435
commit
48fea78cb4
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue