summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-28 19:47:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:59 -0500
commit71b8fdff85559213f5b880946cc918777c2389cc (patch)
tree30e9c65fa145e19b80e77af904c17318345c6fe3 /source3/utils
parent73c8eee9b2f65dc4d97b7aef379f7a087f043d21 (diff)
downloadsamba-71b8fdff85559213f5b880946cc918777c2389cc.tar.gz
samba-71b8fdff85559213f5b880946cc918777c2389cc.tar.bz2
samba-71b8fdff85559213f5b880946cc918777c2389cc.zip
r22003: Fix from Jiri.Sasek@Sun.COM to wrap our krb5_locate_kdc
call as smb_krb5_locate_kdc to prevent incorrect linking and crashes on Solaris. Jeremy. (This used to be commit 7d30737c8d851505e81a60443baf9a8c7e523472)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 19ba5ae7f4..1cc837248f 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -238,9 +238,9 @@ static int net_lookup_kdc(int argc, const char **argv)
realm.length = strlen((const char *)realm.data);
}
- rc = krb5_locate_kdc(ctx, &realm, (struct sockaddr **)(void *)&addrs, &num_kdcs, 0);
+ rc = smb_krb5_locate_kdc(ctx, &realm, (struct sockaddr **)(void *)&addrs, &num_kdcs, 0);
if (rc) {
- DEBUG(1, ("krb5_locate_kdc failed (%s)\n", error_message(rc)));
+ DEBUG(1, ("smb_krb5_locate_kdc failed (%s)\n", error_message(rc)));
return -1;
}
for (i=0;i<num_kdcs;i++)