X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fsmtp_util.c;h=1c57d99595de161d134ac06a597fe3b5ac30c4a5;hb=d4b9b94a21cf240d1b9ca6d7ee3eac67159bcaf8;hp=292bebf4782b321c3f9010f4dde487dacfecc232;hpb=b666894ba73d12f1fd48efb5ce762c368e79aee2;p=citadel.git diff --git a/citadel/modules/smtp/smtp_util.c b/citadel/modules/smtp/smtp_util.c index 292bebf47..1c57d9959 100644 --- a/citadel/modules/smtp/smtp_util.c +++ b/citadel/modules/smtp/smtp_util.c @@ -286,9 +286,9 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt) StrBufAppendBufPlain(BounceMB, HKEY("--"), 0); StrBufAppendBuf(BounceMB, boundary, 0); StrBufAppendBufPlain(BounceMB, HKEY("--\r\n"), 0); - if (bmsg->cm_fields['A'] != NULL) - free(bmsg->cm_fields['A']); - bmsg->cm_fields['A'] = SmashStrBuf(&BounceMB); + if (bmsg->cm_fields['M'] != NULL) + free(bmsg->cm_fields['M']); + bmsg->cm_fields['M'] = SmashStrBuf(&BounceMB); /* Deliver the bounce if there's anything worth mentioning */ syslog(LOG_DEBUG, "num_bounces = %d\n", num_bounces); if (num_bounces > 0) {