Skip to content

Commit

Permalink
Fix: null pointer dereference vulnerability occurring issue trusteddo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Adadov committed Jun 19, 2024
1 parent 5c7cfd9 commit b0db823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopendmarc/opendmarc_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ opendmarc_policy_fetch_ruf(DMARC_POLICY_T *pctx, u_char *list_buf, size_t size_o
{
return NULL;
}
if (list_buf != NULL || size_of_buf > 0)
if (list_buf != NULL && size_of_buf > 0)
{
(void) memset(list_buf, '\0', size_of_buf);
sp = list_buf;
Expand Down

0 comments on commit b0db823

Please sign in to comment.