Skip to content

Commit 17e5e0a

Browse files
committed
Fix: null pointer dereference vulnerability
Official github issue trusteddomainproject#256 CVE-2024-25768
1 parent 5c7cfd9 commit 17e5e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libopendmarc/opendmarc_policy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ opendmarc_policy_fetch_ruf(DMARC_POLICY_T *pctx, u_char *list_buf, size_t size_o
14751475
{
14761476
return NULL;
14771477
}
1478-
if (list_buf != NULL || size_of_buf > 0)
1478+
if (list_buf != NULL && size_of_buf > 0)
14791479
{
14801480
(void) memset(list_buf, '\0', size_of_buf);
14811481
sp = list_buf;

0 commit comments

Comments
 (0)