blob: 8aa5113176dc0a0ca20847a6dce929ce4535f9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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];
|