diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2023-12-10 09:45:27 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2023-12-10 09:45:27 +0000 |
commit | 38b6c8c8ca8294c87bce5325fbba50fba1a40465 (patch) | |
tree | 14f869a6270a904547a6abcb113c5425554d8331 /src/core/object/dns.c | |
parent | Adding upstream version 1.2.3. (diff) | |
download | dnsjit-38b6c8c8ca8294c87bce5325fbba50fba1a40465.tar.xz dnsjit-38b6c8c8ca8294c87bce5325fbba50fba1a40465.zip |
Adding upstream version 1.3.0.upstream/1.3.0
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
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; \ |