SMTP-Client: another possible NULL-Pointer access.
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index f08efde76e61ce1419281bf33267167ccaddf67c..5cf7e7e4a748b4c032313118d00f763d808c2a28 100644 (file)
@@ -608,7 +608,7 @@ void smtp_try_one_queue_entry(OneQueItem *MyQItem,
        }
        else {
                /* No recipients? well fail then. */
-               if (Msg->MyQEntry == NULL) {
+               if (Msg->MyQEntry != NULL) {
                        Msg->MyQEntry->Status = 5;
                        StrBufPlain(Msg->MyQEntry->StatusMessage,
                                    HKEY("Invalid Recipient!"));