From: mortenp Date: Tue, 14 Sep 2004 09:27:29 +0000 (+1000) Subject: fixed check (variable name is listaddr, and use strcasecmp()) X-Git-Tag: RELEASE_1_1_0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a4330bf676c590ec53abb9d2dc14e3fd67a0abd;p=thirdparty%2Fmlmmj.git fixed check (variable name is listaddr, and use strcasecmp()) --- diff --git a/src/mlmmj-process.c b/src/mlmmj-process.c index a91bebda..30b5d389 100644 --- a/src/mlmmj-process.c +++ b/src/mlmmj-process.c @@ -597,8 +597,7 @@ int main(int argc, char **argv) if(addrtocc && !intocc) { /* Don't send a mail about denial to the list, but silently * discard and exit */ - if (strncasecmp(listaddress, fromemails.emaillist[0], - strlen(listaddress)) == 0) { + if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) { myfree(listaddr); unlink(donemailname); myfree(donemailname); @@ -636,8 +635,7 @@ int main(int argc, char **argv) if(subonlypost) { /* Don't send a mail about denial to the list, but silently * discard and exit */ - if (strncasecmp(listaddress, fromemails.emaillist[0], - strlen(listaddress)) == 0) { + if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) { myfree(listaddr); unlink(donemailname); myfree(donemailname); @@ -681,8 +679,7 @@ int main(int argc, char **argv) if (access_rules) { /* Don't send a mail about denial to the list, but silently * discard and exit */ - if (strncasecmp(listaddress, fromemails.emaillist[0], - strlen(listaddress)) == 0) { + if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) { myfree(listaddr); unlink(donemailname); myfree(donemailname);