diff options
| author | Riccardo Spagni <ric@spagni.net> | 2015-05-31 16:38:19 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2015-05-31 16:38:21 +0200 |
| commit | 431397abfaf37b28c6981242d7fd59d8e520c8ec (patch) | |
| tree | fa324d2f9f02668a6d56d2e4d195a59ab1d3710e /external/unbound/testcode/unitmsgparse.c | |
| parent | afb225b3ce570eca0c50fc56dd32b38d9c1a0758 (diff) | |
| parent | 6a1190792b0409e7a996400614e5e2c6ba02e5f6 (diff) | |
| download | monzero-core-431397abfaf37b28c6981242d7fd59d8e520c8ec.tar.gz monzero-core-431397abfaf37b28c6981242d7fd59d8e520c8ec.tar.xz monzero-core-431397abfaf37b28c6981242d7fd59d8e520c8ec.zip | |
Merge pull request #302
6a11907 update libunbound (Riccardo Spagni)
Diffstat (limited to 'external/unbound/testcode/unitmsgparse.c')
| -rw-r--r-- | external/unbound/testcode/unitmsgparse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/external/unbound/testcode/unitmsgparse.c b/external/unbound/testcode/unitmsgparse.c index ba4e234c8..627d10b78 100644 --- a/external/unbound/testcode/unitmsgparse.c +++ b/external/unbound/testcode/unitmsgparse.c @@ -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; } |
