From 5ba4d1c1beae4ee118766d0b78e167131960b796 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 9 May 2000 18:27:21 +0000 Subject: [PATCH] 2000-05-09 Alexandra Ellwood *localaddr.c: Fixed the local_addr_fallback_kludge so that it actually does something. Before that the error code it was handling was blowing it away in cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12243 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/localaddr.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 88fdd88b4..819494009 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2000-05-09 Alexandra Ellwood + + *localaddr.c: Fixed the local_addr_fallback_kludge so that it actually does something. + Before that the error code it was handling was blowing it away in cleanup. + 2000-04-29 Jeffrey Altman * hst_realm.c (krb5_get_host_realm) diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index 9079500e1..f0f1a29ec 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -473,6 +473,8 @@ krb5_os_localaddr (krb5_context context, krb5_address ***addr) { hostrec = local_addr_fallback_kludge(); if (!hostrec) return err; + else + err = 0; /* otherwise we will die at cleanup */ } for (count = 0; hostrec->h_addr_list[count]; count++); -- 2.26.2