Commit 76a92791 76a9279156af2881a5850bf7b33617d76b3a01c5 by Sam Roberts

Check return value of locker_lock().

1 parent d1fd9ebc
......@@ -574,7 +574,11 @@ mbox_scan0 (mailbox_t mailbox, size_t msgno, size_t *pcount, int do_notif)
return status;
}
locker_lock (mailbox->locker);
if((status = locker_lock (mailbox->locker)))
{
monitor_unlock (mailbox->monitor);
return status;
}
/* Seek to the starting point. */
if (mud->umessages && msgno > 0 && mud->messages_count > 0
......