diff --git a/RELICENSE/patrickvolante.md b/RELICENSE/patrickvolante.md new file mode 100644 index 00000000..1f84827c --- /dev/null +++ b/RELICENSE/patrickvolante.md @@ -0,0 +1,15 @@ +# Permission to Relicense under MPLv2 or any other share-alike OSI approved license chosen by the current ZeroMQ BDFL + +This is a statement by Patrick Volante +that grants permission to relicense its copyrights in the libzmq C++ +library (ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other +share-alike Open Source Initiative approved license chosen by the current +ZeroMQ BDFL (Benevolent Dictator for Life). + +A portion of the commits made by the Github handle "patrick-volante", with +commit author "patrick-volante ", are copyright of patrick volante. +This document hereby grants the libzmq project team to relicense libzmq, +including all past, present and future contributions of the author listed above. + +Patrick Volante +03/12/2021 diff --git a/src/epoll.cpp b/src/epoll.cpp index da95bd0a..03642cf2 100644 --- a/src/epoll.cpp +++ b/src/epoll.cpp @@ -192,6 +192,10 @@ void zmq::epoll_t::loop () const poll_entry_t *const pe = static_cast (ev_buf[i].data.ptr); + if (NULL == pe) + continue; + if (NULL == pe->events) + continue; if (pe->fd == retired_fd) continue; if (ev_buf[i].events & (EPOLLERR | EPOLLHUP))