diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2010-06-02 19:16:54 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2010-06-02 19:16:54 +0000 |
commit | 3c6ca140406ff1e9c8d2cad836bdd5ceeff3ec94 (patch) | |
tree | 8621ab9982bc1ce7607251b8d52bb08a162a1577 /usr.sbin/smtpd/enqueue.c | |
parent | 7506a99adac8ba760239e941a4ed33832b15643b (diff) |
check event_dispatch() return value
ok jacekm@
Diffstat (limited to 'usr.sbin/smtpd/enqueue.c')
-rw-r--r-- | usr.sbin/smtpd/enqueue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c index b900c15d0cd..d514a96d4e4 100644 --- a/usr.sbin/smtpd/enqueue.c +++ b/usr.sbin/smtpd/enqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enqueue.c,v 1.36 2010/06/01 23:06:23 jacekm Exp $ */ +/* $OpenBSD: enqueue.c,v 1.37 2010/06/02 19:16:53 chl Exp $ */ /* * Copyright (c) 2005 Henning Brauer <henning@bulabula.org> @@ -237,7 +237,8 @@ enqueue(int argc, char *argv[]) event_set(&msg.ev, msg.fd, EV_READ|EV_WRITE, enqueue_event, NULL); event_add(&msg.ev, &msg.pcb->timeout); - event_dispatch(); + if (event_dispatch() < 0) + err(1, "event_dispatch"); client_close(msg.pcb); exit(0); |