'Bruncsak, Attila' attila.bruncsak@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:
> (gdb) print spf_response->received_spf_value
> $2 = 0x0
Does that fix the problem?
Index: spf.c
===================================================================
RCS file: /cvsroot/milter-greylist/spf.c,v
retrieving revision 1.39
diff -U 4 -r1.39 spf.c
--- spf.c 5 Oct 2015 04:18:34 -0000 1.39
+++ spf.c 29 Oct 2015 06:01:11 -0000
@@ -465,9 +465,15 @@
priv->priv_spf_result, res, result);
if (priv->priv_spf_header != NULL)
free(priv->priv_spf_header);
- priv->priv_spf_header = strdup(spf_response->received_spf_value);
+
+
+ if (spf_response->received_spf_value)
+ priv->priv_spf_header =
+ strdup(spf_response->received_spf_value);
+ else
+ priv->priv_spf_header = NULL;
SPF_response_free(spf_response);
out3:
SPF_request_free(spf_request);
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...Message
Re: [milter-greylist] milter-greylist 4.5.15 is available
2015-10-29 by manu@...
Attachments
- No local attachments were found for this message.