Menu

Bug in opendmarc_get_policy_to_enforce (also: can't create a sourceforge ticket...)

2012-07-13
2012-07-14
  • Roland Turner

    Roland Turner - 2012-07-13

    (in 0.1.0 and 0.1.2)

    OPENDMARC_STATUS_T
    opendmarc_get_policy_to_enforce(DMARC_POLICY_T *pctx)
    {
    u_char rev_from_domain[MAXDNSHOSTNAME];
    u_char rev_spf_domain[MAXDNSHOSTNAME];
    u_char rev_dkim_domain[MAXDNSHOSTNAME];

    if (pctx == NULL)
    return DMARC_PARSE_ERROR_NULL_CTX;

    if (pctx->from_domain == NULL)
    return DMARC_POLICY_ABSENT;

    if (pctx->from_domain == NULL)
    return DMARC_FROM_DOMAIN_ABSENT;
    (void) opendmarc_reverse_domain(pctx->from_domain, rev_from_domain, sizeof rev_from_domain);

    The first "if (pctx->from_domain == NULL)" is presumably supposed to be "if (pctx->p == NULL)"

     
  • Murray S. Kucherawy

    Not exactly, because "p" is an int. But it does seem incorrect.

    Bryan?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.