From 4e5422097d251676ccaf432f12cbf638c9352424 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 6 Dec 1999 17:10:13 +0000 Subject: [PATCH] (krb4_auth): the nat-IP address might not be realm bounded. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7554 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/krb4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appl/ftp/ftp/krb4.c b/appl/ftp/ftp/krb4.c index 50157cb85..009ad04a9 100644 --- a/appl/ftp/ftp/krb4.c +++ b/appl/ftp/ftp/krb4.c @@ -253,7 +253,8 @@ krb4_auth(void *app_data, char *host) struct in_addr natAddr; if (krb_get_our_ip_for_realm(krb_realmofhost(host), - &natAddr) != KSUCCESS) + &natAddr) != KSUCCESS + && krb_get_our_ip_for_realm(NULL, &natAddr) != KSUCCESS) printf("Can't get address for realm %s\n", krb_realmofhost(host)); else {