summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-04-25 12:53:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:30 -0500
commit6f5effa730dde49ec30e03e3bc403990affe9f03 (patch)
tree4785318731d7e10ed7297157c2e6ac677f4e36e9 /source3/include
parent351e749246a278b60a7e18c1eeafdc8ec70efea2 (diff)
downloadsamba-6f5effa730dde49ec30e03e3bc403990affe9f03.tar.gz
samba-6f5effa730dde49ec30e03e3bc403990affe9f03.tar.bz2
samba-6f5effa730dde49ec30e03e3bc403990affe9f03.zip
r15243: Sorry for the breakage:
* Fix the build without kerberos headers * Fix memleak in the krb5_address handling Guenther (This used to be commit 10e42117559d4bc6a34e41a94914bf6c65c3477f)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ads.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/include/ads.h b/source3/include/ads.h
index 711dd2aa70..f29c94bb90 100644
--- a/source3/include/ads.h
+++ b/source3/include/ads.h
@@ -271,10 +271,14 @@ typedef void **ADS_MODLIST;
#define KRB5_ADDR_NETBIOS 0x14
#endif
+#ifdef HAVE_KRB5
typedef struct {
#if defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) /* MIT */
krb5_address **addrs;
-#else /* Heimdal has the krb5_addresses type */
+#elif defined(HAVE_KRB5_ADDRESSES) /* Heimdal */
krb5_addresses *addrs;
+#else
+#error UNKNOWN_KRB5_ADDRESS_TYPE
#endif
} smb_krb5_addresses;
+#endif