RE: OpenDKIM 2.5.1 Crashes On Certain Messages

From: John Merriam <john_at_johnmerriam.net>
Date: Mon, 2 Apr 2012 10:03:08 -0400 (EDT)

On Mon, 2 Apr 2012, Murray S. Kucherawy wrote:
> I'm not too concerned with the cost of retrieving a pointer from inside an opaque data structure, which is all that function does. But in the interests of preserving your efficiency, I'll do this instead:
>
> if (conf->conf_localadsp_db != NULL)
> {
> u_char *domain;
>
> domain = dkim_getdomain(dfc->mctx_dkimv);
>
> if (domain != NULL &&
> dkimf_local_adsp(conf, (char *) domain,
> &dfc->mctx_pcode))
> {
> pstatus = DKIM_STAT_OK;
> policydone = TRUE;
> localadsp = TRUE;
> localresult = DKIM_PRESULT_FOUND;
> }
> }
>
> How's that?

This patch fixes the problem as well.

Like I said it's not a big deal. I just noticed it so I figured I would
mention it.

Thanks!

--
John Merriam
Received on Mon Apr 02 2012 - 14:03:17 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:38 PST