rwrap: Recursively add additional data
authorJakub Hrozek <jakub.hrozek@gmail.com>
Tue, 25 Nov 2014 17:33:21 +0000 (18:33 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 27 Nov 2014 14:59:25 +0000 (15:59 +0100)
commitc3f3bfb7c91949f3ea5b41393d9afa9f168b82f4
treecd54538d499227060c0d19be73946d9d4cde0391
parent9578af3406df2f03f637fb55b47b4cbd8f7fb577
rwrap: Recursively add additional data

Change how we construct the fake answer such that the header and
question are added first, then the answers and finally additional data.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
src/resolv_wrapper.c