diff options
author | des <des@FreeBSD.org> | 2014-05-14 18:44:22 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-05-14 18:44:22 +0000 |
commit | 958f19752f90b9f4b82e4c9fa7082b55ab913662 (patch) | |
tree | 86c1332d2843f4c80ae64365c16ba04306b6f542 /pythonmod/pythonmod_utils.c | |
parent | c6f87fd5e619b950a5b259f7d881955f49b6a2d9 (diff) | |
download | FreeBSD-src-958f19752f90b9f4b82e4c9fa7082b55ab913662.zip FreeBSD-src-958f19752f90b9f4b82e4c9fa7082b55ab913662.tar.gz |
import unbound 1.4.22
Diffstat (limited to 'pythonmod/pythonmod_utils.c')
-rw-r--r-- | pythonmod/pythonmod_utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pythonmod/pythonmod_utils.c b/pythonmod/pythonmod_utils.c index b25acd3..2f38480 100644 --- a/pythonmod/pythonmod_utils.c +++ b/pythonmod/pythonmod_utils.c @@ -48,6 +48,7 @@ #include "util/data/msgreply.h" #include "util/storage/slabhash.h" #include "util/regional.h" +#include "ldns/sbuffer.h" #undef _POSIX_C_SOURCE #undef _XOPEN_SOURCE @@ -106,7 +107,7 @@ void invalidateQueryInCache(struct module_qstate* qstate, struct query_info* qin } /* Create response according to the ldns packet content */ -int createResponse(struct module_qstate* qstate, ldns_buffer* pkt) +int createResponse(struct module_qstate* qstate, sldns_buffer* pkt) { struct msg_parse* prs; struct edns_data edns; @@ -121,7 +122,7 @@ int createResponse(struct module_qstate* qstate, ldns_buffer* pkt) memset(prs, 0, sizeof(*prs)); memset(&edns, 0, sizeof(edns)); - ldns_buffer_set_position(pkt, 0); + sldns_buffer_set_position(pkt, 0); if (parse_packet(pkt, prs, qstate->env->scratch) != LDNS_RCODE_NOERROR) { verbose(VERB_ALGO, "storeResponse: parse error on reply packet"); return 0; |