1
0
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:
henri
2012-01-11 11:17:58 +00:00
parent a2c4f53435
commit 48fea78cb4

View File

@@ -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;