summaryrefslogtreecommitdiff
path: root/src/libknot/nameserver/name-server.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-04-13 17:14:49 +0200
committerOndřej Surý <ondrej@sury.org>2012-04-13 17:14:49 +0200
commitc5e123fb66dfd412a0d89293f893871f9a2e7d12 (patch)
treee4351340a850ae861ce99a4e7824f2f1bd0660a6 /src/libknot/nameserver/name-server.c
parentb5c64fe14e2b779a715756d47d7d4c7e8e5729ea (diff)
downloadknot-c5e123fb66dfd412a0d89293f893871f9a2e7d12.tar.gz
Imported Upstream version 1.0.2upstream/1.0.2
Diffstat (limited to 'src/libknot/nameserver/name-server.c')
-rw-r--r--src/libknot/nameserver/name-server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libknot/nameserver/name-server.c b/src/libknot/nameserver/name-server.c
index dea16ec..e1ccdd4 100644
--- a/src/libknot/nameserver/name-server.c
+++ b/src/libknot/nameserver/name-server.c
@@ -646,6 +646,8 @@ static int ns_put_authority_soa(const knot_zone_contents_t *zone,
knot_rrset_set_ttl(soa_copy, min);
soa_rrset = soa_copy;
+ /* Need to add it as temporary, so it get's freed. */
+ knot_packet_add_tmp_rrset(resp, soa_copy);
}
assert(soa_rrset != NULL);