diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-04-13 17:14:49 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-04-13 17:14:49 +0200 |
commit | c5e123fb66dfd412a0d89293f893871f9a2e7d12 (patch) | |
tree | e4351340a850ae861ce99a4e7824f2f1bd0660a6 /src/libknot/nameserver/name-server.c | |
parent | b5c64fe14e2b779a715756d47d7d4c7e8e5729ea (diff) | |
download | knot-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.c | 2 |
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); |