Check return value of locker_lock().
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment