cachedump.c (20237c55) | cachedump.c (2308e98c) |
---|---|
1/* 2 * daemon/cachedump.c - dump the cache to text format. 3 * 4 * Copyright (c) 2008, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 639 unchanged lines hidden (view full) --- 648 &security, &an, &ns, &ar) != 7) { 649 log_warn("error cannot parse numbers: %s", s); 650 return 0; 651 } 652 rep.flags = (uint16_t)flags; 653 rep.qdcount = (uint16_t)qdcount; 654 rep.ttl = (time_t)ttl; 655 rep.prefetch_ttl = PREFETCH_TTL_CALC(rep.ttl); | 1/* 2 * daemon/cachedump.c - dump the cache to text format. 3 * 4 * Copyright (c) 2008, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 639 unchanged lines hidden (view full) --- 648 &security, &an, &ns, &ar) != 7) { 649 log_warn("error cannot parse numbers: %s", s); 650 return 0; 651 } 652 rep.flags = (uint16_t)flags; 653 rep.qdcount = (uint16_t)qdcount; 654 rep.ttl = (time_t)ttl; 655 rep.prefetch_ttl = PREFETCH_TTL_CALC(rep.ttl); |
656 rep.serve_expired_ttl = rep.ttl + SERVE_EXPIRED_TTL; |
|
656 rep.security = (enum sec_status)security; 657 if(an > RR_COUNT_MAX || ns > RR_COUNT_MAX || ar > RR_COUNT_MAX) { 658 log_warn("error too many rrsets"); 659 return 0; /* protect against integer overflow in alloc */ 660 } 661 rep.an_numrrsets = (size_t)an; 662 rep.ns_numrrsets = (size_t)ns; 663 rep.ar_numrrsets = (size_t)ar; --- 236 unchanged lines hidden --- | 657 rep.security = (enum sec_status)security; 658 if(an > RR_COUNT_MAX || ns > RR_COUNT_MAX || ar > RR_COUNT_MAX) { 659 log_warn("error too many rrsets"); 660 return 0; /* protect against integer overflow in alloc */ 661 } 662 rep.an_numrrsets = (size_t)an; 663 rep.ns_numrrsets = (size_t)ns; 664 rep.ar_numrrsets = (size_t)ar; --- 236 unchanged lines hidden --- |