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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325047

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: