Commit 1c3f803f 1c3f803f6cace962c2440c358a855a18cfad3330 by Sergey Poznyakoff

mailbox_get_stream(): Fixed funny bug (introduced Dec 4, 2000).

1 parent dcd50df5
......@@ -384,7 +384,7 @@ mailbox_set_stream (mailbox_t mbox, stream_t stream)
int
mailbox_get_stream (mailbox_t mbox, stream_t *pstream)
{
if (mbox == NULL || pstream)
if (mbox == NULL || pstream == NULL)
return EINVAL;
/* The stream is set on the folder if exist, not the mailbox. */
if (mbox->folder)
......