nwrap: Fix the build on Solaris
authorAndreas Schneider <asn@samba.org>
Mon, 23 Nov 2015 07:33:02 +0000 (08:33 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:32 +0000 (12:25 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c

index be977dfad96c138fb3b7500e22ae9a076234a7c2..a080b808f54b112932f6f17a684f7560eb60bb2e 100644 (file)
@@ -5578,7 +5578,9 @@ void nwrap_destructor(void)
        }
 
        free(user_addrlist.items);
+#ifdef HAVE_GETHOSTBYNAME2
        free(user_addrlist2.items);
+#endif
 
        hdestroy();
        NWRAP_UNLOCK_ALL;