Protect precious strlens, as pointed out by John Goerzen
[citadel.git] / citadel / modules / ctdlproto / serv_messages.c
index 31e48cb8c3077409ae9827f84b303e51208dd267..0751e28a91ead449f721e3f30d99c26aaecdd056 100644 (file)
@@ -598,7 +598,7 @@ void cmd_ent0(char *entargs)
        }
        free(all_recps);
 
-       if ((valid != NULL) && (valid->num_room == 1))
+       if ((valid != NULL) && (valid->num_room == 1) && !IsEmptyStr(valid->recp_orgroom))
        {
                /* posting into an ML room? set the envelope from 
                 * to the actual mail address so others get a valid