summaryrefslogtreecommitdiff
path: root/src/libknot/edns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libknot/edns.c')
-rw-r--r--src/libknot/edns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libknot/edns.c b/src/libknot/edns.c
index 435e27c..d12861c 100644
--- a/src/libknot/edns.c
+++ b/src/libknot/edns.c
@@ -428,9 +428,9 @@ void knot_edns_free_options(knot_opt_rr_t *opt_rr)
if (opt_rr->option_count > 0) {
/* Free the option data, if any. */
for (int i = 0; i < opt_rr->option_count; i++) {
- struct knot_opt_option option = opt_rr->options[i];
- if (option.data != NULL) {
- free(option.data);
+ knot_opt_option_t *option = &(opt_rr->options[i]);
+ if (option->data != NULL) {
+ free(option->data);
}
}
free(opt_rr->options);