slackbuilds_ponce/network/opendmarc/patches/ticket203.patch
Mario Preksavec fe01e850a8 network/opendmarc: Added (DMARC milter and library).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2019-05-17 23:20:52 +07:00

26 lines
851 B
Diff

diff --git a/libopendmarc/opendmarc_policy.c b/libopendmarc/opendmarc_policy.c
index 862c449..8048ec3 100644
--- a/libopendmarc/opendmarc_policy.c
+++ b/libopendmarc/opendmarc_policy.c
@@ -1087,6 +1087,10 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
/*
* A possibly comma delimited list of URI of where to send reports.
*/
+
+ if (pctx->rua_list != NULL)
+ return DMARC_PARSE_ERROR_BAD_VALUE;
+
for (xp = vp; *xp != '\0'; )
{
u_char xbuf[256];
@@ -1115,6 +1119,10 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
* A possibly comma delimited list of URI of where to send
* MARF reports.
*/
+
+ if (pctx->ruf_list != NULL)
+ return DMARC_PARSE_ERROR_BAD_VALUE;
+
for (xp = vp; *xp != '\0'; )
{
u_char xbuf[256];