From: Baptiste Daroussin Date: Wed, 12 Apr 2023 15:54:46 +0000 (+0200) Subject: mlmmj-send: xstrdup already abort in case of issue with memory X-Git-Tag: RELEASE_1_4_0b1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6d8a84ea83654e027879cb898a6603300c9ac3;p=thirdparty%2Fmlmmj.git mlmmj-send: xstrdup already abort in case of issue with memory --- diff --git a/src/mlmmj-send.c b/src/mlmmj-send.c index fd196a1c..e2dfcfea 100644 --- a/src/mlmmj-send.c +++ b/src/mlmmj-send.c @@ -107,28 +107,15 @@ char *bounce_from_adr(const char *recipient, const char *listadr, int index; mymailfilename = xstrdup(mailfilename); - if (!mymailfilename) { - return NULL; - } index = get_index_from_filename(mymailfilename); myrecipient = xstrdup(recipient); - if (!myrecipient) { - free(mymailfilename); - return NULL; - } a = strchr(myrecipient, '@'); if (a) *a = '='; mylistadr = xstrdup(listadr); - if (!mylistadr) { - free(mymailfilename); - free(myrecipient); - return NULL; - } - listdomain = strchr(mylistadr, '@'); if (!listdomain) { free(mymailfilename);