summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mproc.c
AgeCommit message (Expand)Author
2021-06-14add required headers for smtpd.h and remove unnecessary ones in other files.Eric Faurot
2021-05-26replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.cEric Faurot
2020-12-20Onlly call event_del if there are events enabled, since not all libeventsMartijn van Duren
2020-03-17Exit when m_get_string() returns NULL to prevent nullptr dereference intobhe
2019-10-03check imsg_flush() return value and fatal() if == -1Gilles Chehade
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-05-24fix typo in fatal message to -> tooGilles Chehade
2018-12-17set the return pointer to NULL when receiving a 0-sized data.Eric Faurot
2018-12-13in event reports, use a struct timeval instead of time_t since we want moreGilles Chehade
2018-11-11accept NULL as a valid string in the proc message formating api.Eric Faurot
2017-03-17switch to recallocarray() and remove useless pre-allocation.Eric Faurot
2016-09-14remove useless #ifndefEric Faurot
2016-09-08Streamline the daemon shutdown sequence.Eric Faurot
2016-09-03get rid of the type-checking system on internal messages.Eric Faurot
2016-09-02use imsg_read_nofd() implementation from bgpd.Eric Faurot
2016-09-01zap dead codeEric Faurot
2016-09-01Get rid of the custom msgbuf_write2() function adapted from libutil.Eric Faurot
2016-09-01get rid of the imsg buffer usage profiling code.Eric Faurot
2016-08-31Remove dead code. queue_flow_control() has never been used and isEric Faurot
2016-06-06do not return on EAGAIN otherwise the event is never reloaded.Eric Faurot
2016-03-25Nuke session_socket_blockmode() and session_socket_linger(). UseKenneth R Westerback
2016-02-10Change imsg_read() return value checking from an if..else block toTodd C. Miller
2016-02-09r1.16 accidentally masked retries on EAGAIN introduced in r1.15.Sunil Nimmagadda
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-10-14imsg_read() may return EAGAIN, handle it in mproc_dispatch()Gilles Chehade
2015-10-14whitespace + only log TRACE_MPROC if not IMSG_STAT_{IN,DE}CREMENTGilles Chehade
2015-10-02introduce imsg_read_nofd() to allow reading imsg while discarding fd's whenGilles Chehade
2015-06-11local user can cause smtpd to fail by sending invalid imsg to control sockGilles Chehade
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-07-08Update the table API: lookup functions can take an optional parametersEric Faurot
2014-04-29Implement RSA privilege separation for OpenSMTPD, based on my previousReyk Floeter
2014-04-19(void) cast snprintf() call used to craft fatalx() message from withinGilles Chehade
2013-12-26bcopy -> memmoveEric Faurot
2013-11-21correctly handle EAGAIN and closed pipe in msgbuf_write()Eric Faurot
2013-10-24Do not fatal() immediatly on write error, but report to the upper layer.Eric Faurot
2013-07-19typoEric Faurot
2013-05-24sync with OpenSMTPD 5.3.2Eric Faurot
2013-01-31assorted fixes spotted by Coverity.Eric Faurot
2013-01-26Sync with our smtpd repo:Gilles Chehade