From af3dabbf15fa4d0e7e45a43fbf9a2195edfa941c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 17 Sep 2015 15:21:27 +0000 Subject: import unbound 1.5.4 --- testcode/unitmsgparse.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testcode/unitmsgparse.c') diff --git a/testcode/unitmsgparse.c b/testcode/unitmsgparse.c index b33a2408d4e72..627d10b78ec3d 100644 --- a/testcode/unitmsgparse.c +++ b/testcode/unitmsgparse.c @@ -51,9 +51,9 @@ #include "util/net_help.h" #include "testcode/readhex.h" #include "testcode/testpkts.h" -#include "ldns/sbuffer.h" -#include "ldns/str2wire.h" -#include "ldns/wire2str.h" +#include "sldns/sbuffer.h" +#include "sldns/str2wire.h" +#include "sldns/wire2str.h" /** verbose message parse unit test */ static int vbmp = 0; @@ -497,9 +497,11 @@ testfromdrillfile(sldns_buffer* pkt, struct alloc_cache* alloc, void msgparse_test(void) { + time_t origttl = MAX_NEG_TTL; sldns_buffer* pkt = sldns_buffer_new(65553); sldns_buffer* out = sldns_buffer_new(65553); struct alloc_cache super_a, alloc; + MAX_NEG_TTL = 86400; /* init */ alloc_init(&super_a, NULL, 0); alloc_init(&alloc, &super_a, 2); @@ -536,4 +538,5 @@ void msgparse_test(void) alloc_clear(&super_a); sldns_buffer_free(pkt); sldns_buffer_free(out); + MAX_NEG_TTL = origttl; } -- cgit v1.2.3