diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/object/dns.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/object/dns.c b/src/core/object/dns.c index 0698286..a4bf309 100644 --- a/src/core/object/dns.c +++ b/src/core/object/dns.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022, OARC, Inc. + * Copyright (c) 2018-2023, OARC, Inc. * All rights reserved. * * This file is part of dnsjit. @@ -95,6 +95,12 @@ void core_object_dns_free(core_object_dns_t* self) free(self); } +void core_object_dns_reset(core_object_dns_t* self) +{ + mlassert_self(); + *self = _defaults; +} + #define need8(v, p, l) \ if (l < 1) { \ break; \ |