From 65cbff6efe9cb8b646b5c8b4c9cda431af60ed70 Mon Sep 17 00:00:00 2001 From: Andrey Slusar Date: Mon, 29 Jan 2007 10:55:59 +0000 Subject: [PATCH] Fix tossing, when `packet' in passwd defined. --- news/fidogate-ds/Makefile | 2 +- news/fidogate-ds/files/patch-ftntoss.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 news/fidogate-ds/files/patch-ftntoss.c diff --git a/news/fidogate-ds/Makefile b/news/fidogate-ds/Makefile index 518ba7f46dab..ccea8dfc1d05 100644 --- a/news/fidogate-ds/Makefile +++ b/news/fidogate-ds/Makefile @@ -6,7 +6,7 @@ PORTNAME= fidogate PORTVERSION= 5.1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= news mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= rusfidogate diff --git a/news/fidogate-ds/files/patch-ftntoss.c b/news/fidogate-ds/files/patch-ftntoss.c new file mode 100644 index 000000000000..3ce64bd5fe2d --- /dev/null +++ b/news/fidogate-ds/files/patch-ftntoss.c @@ -0,0 +1,11 @@ +--- src/toss/ftntoss.c.orig Mon Jan 29 12:53:14 2007 ++++ src/toss/ftntoss.c Mon Jan 29 12:53:22 2007 +@@ -882,7 +882,7 @@ + #endif /* !SECURITY */ + + if (NULL != (pwd = passwd_lookup("packet", &msg->node_from)) && +- !stricmp(pkt->passwd, pwd->passwd)) ++ stricmp(pkt->passwd, pwd->passwd)) + { + fglog("Insecure echomail packet from %s, area %s (%s pkt password)", + znfp1(&msg->node_from), areaname,