[31484] in CVS-changelog-for-Kerberos-V5
krb5 commit: Fix build when KRB5_DNS_LOOKUP isn't defined
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Tue Nov 11 22:38:02 2025
From: ghudson@mit.edu
To: cvs-krb5@mit.edu
Message-Id: <20251112033753.6278A101918@krbdev.mit.edu>
Date: Tue, 11 Nov 2025 22:37:53 -0500 (EST)
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: multipart/mixed; boundary="===============4074429090205227099=="
Errors-To: cvs-krb5-bounces@mit.edu
--===============4074429090205227099==
Content-Type: text/plain
https://github.com/krb5/krb5/commit/3c672caba714164f26a7464ba82873dff750573c
commit 3c672caba714164f26a7464ba82873dff750573c
Author: Sven Püschel <s.pueschel@pengutronix.de>
Date: Tue Oct 28 16:08:59 2025 +0100
Fix build when KRB5_DNS_LOOKUP isn't defined
Commit fabbf11f457a84904a5fa251584fd660a52fa583 mistakenly defined the
kdclist and kdclist_entry structures inside a KRB5_DNS_LOOKUP
conditional. Move the definitions outside of the conditional.
[ghudson@mit.edu: edited commit message]
src/lib/krb5/os/locate_kdc.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c
index d1df04a63..c186bce51 100644
--- a/src/lib/krb5/os/locate_kdc.c
+++ b/src/lib/krb5/os/locate_kdc.c
@@ -28,16 +28,6 @@
#include "fake-addrinfo.h"
#include "os-proto.h"
-#ifdef KRB5_DNS_LOOKUP
-
-#define DEFAULT_LOOKUP_KDC 1
-#if KRB5_DNS_LOOKUP_REALM
-#define DEFAULT_LOOKUP_REALM 1
-#else
-#define DEFAULT_LOOKUP_REALM 0
-#endif
-#define DEFAULT_URI_LOOKUP TRUE
-
struct kdclist_entry {
krb5_data realm;
struct server_entry server;
@@ -48,6 +38,16 @@ struct kdclist {
struct kdclist_entry *list;
};
+#ifdef KRB5_DNS_LOOKUP
+
+#define DEFAULT_LOOKUP_KDC 1
+#if KRB5_DNS_LOOKUP_REALM
+#define DEFAULT_LOOKUP_REALM 1
+#else
+#define DEFAULT_LOOKUP_REALM 0
+#endif
+#define DEFAULT_URI_LOOKUP TRUE
+
static int
maybe_use_dns (krb5_context context, const char *name, int defalt)
{
--===============4074429090205227099==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
--===============4074429090205227099==--