nwrap: Use DNS_NAME_MAX cause it is not available on BSD.
commit2bbd403f39eb5bc6025014fe1514751dd5872207
authorAndreas Schneider <asn@samba.org>
Thu, 9 Oct 2014 07:16:33 +0000 (9 09:16 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 9 Oct 2014 10:24:03 +0000 (9 12:24 +0200)
tree445479e3e4f57d7d74b25ebd148ac0f5e9b3fb92
parent895b32b2e39417072bc40afeb21293a08181399f
nwrap: Use DNS_NAME_MAX cause it is not available on BSD.

Also HOST_NAME_MAX is only for the value returned by gethostname(). It
is normally limited to 64 chars on Linux.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/nss_wrapper/nss_wrapper.c