rwrap: Recursively add additional data
authorJakub Hrozek <jakub.hrozek@gmail.com>
Wed, 3 Dec 2014 14:45:07 +0000 (15:45 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 5 Dec 2014 22:32:07 +0000 (23:32 +0100)
commitf5c156aac20b468b4324114515e1a951e1304713
tree32bc922189196ae70bc7e5d43bb76a361c31949b
parentaa78268a49062d3bd1cb907828a250a01ebbd59a
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>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/resolv_wrapper/resolv_wrapper.c