aboutsummaryrefslogtreecommitdiff
path: root/testcode/testpkts.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcode/testpkts.c')
-rw-r--r--testcode/testpkts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testcode/testpkts.c b/testcode/testpkts.c
index aa852f01ee47..8c68c48415a4 100644
--- a/testcode/testpkts.c
+++ b/testcode/testpkts.c
@@ -470,6 +470,7 @@ get_origin(const char* name, struct sldns_file_parse_state* pstate, char* parse)
store = *end;
*end = 0;
verbose(3, "parsing '%s'\n", parse);
+ pstate->origin_len = sizeof(pstate->origin);
status = sldns_str2wire_dname_buf(parse, pstate->origin,
&pstate->origin_len);
*end = store;