dma: fix use-after-free

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2017-10-27 20:21:09 +00:00
parent 966dfbf910
commit 8448a47dcb

View File

@ -331,8 +331,8 @@ deliver(struct qitem *it)
switch (error) {
case 0:
delqueue(it);
syslog(LOG_INFO, "<%s> delivery successful", it->addr);
delqueue(it);
exit(EX_OK);
case 1: