X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Finetcfg%2Fserv_inetcfg.c;h=cf81a8f5b8cf23ac24424971ffa565f342a2fc13;hb=a8381ce990f0eaa1379ecb9d7352a2e54a53cc63;hp=615a48b42b76c03988f18a01d119c0debba87eac;hpb=264eb14f837d13affc78b1665cc3ff567aa13d10;p=citadel.git diff --git a/citadel/modules/inetcfg/serv_inetcfg.c b/citadel/modules/inetcfg/serv_inetcfg.c index 615a48b42..cf81a8f5b 100644 --- a/citadel/modules/inetcfg/serv_inetcfg.c +++ b/citadel/modules/inetcfg/serv_inetcfg.c @@ -92,7 +92,10 @@ int inetcfg_aftersave(struct CtdlMessage *msg, recptypes *recp) { /* If this isn't the configuration room, or if this isn't a MIME * message, don't bother. */ - if (strcasecmp(msg->cm_fields[eOriginalRoom], SYSCONFIGROOM)) return(0); + if ((msg->cm_fields[eOriginalRoom]) && (strcasecmp(msg->cm_fields[eOriginalRoom], SYSCONFIGROOM))) + { + return(0); + } if (msg->cm_format_type != 4) return(0); ptr = msg->cm_fields[eMesageText];