[opendmarc-dev] OpenDMARC 1.3.0 Beta0 available

Murray S. Kucherawy msk at blackops.org
Mon May 5 13:06:37 PDT 2014


On Fri, 2 May 2014, Andreas Schulze wrote:
> opendmarc_spf_dns.c: In function 'opendmarc_spf_dns_lookup_a_actual':
> opendmarc_spf_dns.c:94: warning: passing argument 4 of '__res_query' makes 
> pointer from integer without a cast
> /usr/include/resolv.h:277: note: expected 'u_char *' but argument is of type 
> 'int'

Does this fix it?

-MSK
-------------- next part --------------
diff --git a/libopendmarc/opendmarc_spf_dns.c b/libopendmarc/opendmarc_spf_dns.c
index 33e4b36..581765d 100644
--- a/libopendmarc/opendmarc_spf_dns.c
+++ b/libopendmarc/opendmarc_spf_dns.c
@@ -19,7 +19,7 @@
 **
 ** Arguments:
 **	domain		-- the domain name to look up.
-**	sought		-- type of lookup A or AAA
+**	sought		-- type of lookup A or AAAA
 **	ary		-- array of strings containing list of IP addresses
 **	cnt		-- Pointer to count of lines in array
 ** Returns:
@@ -91,7 +91,7 @@ opendmarc_spf_dns_lookup_a_actual(char *domain, int sought, char **ary, int *cnt
 	k = res_nquery(&resp, bp, C_IN, sought, a_buf, sizeof a_buf);
 	res_nclose(&resp);
 #else /* HAVE_RES_NINIT */
-	k = res_query(bp, C_IN, type, sought, sizeof a_buf);
+	k = res_query(bp, C_IN, sought, a_buf, sizeof a_buf);
 #endif /* HAVE_RES_NINIT */
 	if (k < 0)
 	{


More information about the opendmarc-dev mailing list