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) ...@@ -574,7 +574,11 @@ mbox_scan0 (mailbox_t mailbox, size_t msgno, size_t *pcount, int do_notif)
574 return status; 574 return status;
575 } 575 }
576 576
577 locker_lock (mailbox->locker); 577 if((status = locker_lock (mailbox->locker)))
578 {
579 monitor_unlock (mailbox->monitor);
580 return status;
581 }
578 582
579 /* Seek to the starting point. */ 583 /* Seek to the starting point. */
580 if (mud->umessages && msgno > 0 && mud->messages_count > 0 584 if (mud->umessages && msgno > 0 && mud->messages_count > 0
......