chiark / gitweb /
further wip on SRV - need per-type functions now including postsort
[adns.git] / src / query.c
index 3c98040ace1ef57d02910a18259db0f6f5a90dc8..0b62ff6227d60d95cb79519fbce45cd1b2230f60 100644 (file)
@@ -537,6 +537,9 @@ void adns__query_done(adns_query qu) {
                  qu->typei->diff_needswap,
                qu->ads);
   }
+  if (ans->nrrs && qu->typei->postsort) {
+    qu->typei->postsort(qu->ads, ans->rrs.bytes, ans->nrrs, qu->typei);
+  }
 
   ans->expires= qu->expires;
   parent= qu->parent;