From 302250026cf7b8d7912a7e5ac9a1205d5200d332 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 20 Jan 2022 00:18:44 -0600 Subject: [PATCH] kdc: Do not announce via Bonjour when testing Let's see if this fixes the GitHub Actions OS X CI. --- kdc/connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdc/connect.c b/kdc/connect.c index 05ff9e183..ba8c8ad7b 100644 --- a/kdc/connect.c +++ b/kdc/connect.c @@ -1163,7 +1163,7 @@ start_kdc(krb5_context context, #endif #ifdef __APPLE__ - if (do_bonjour > 0) + if (!testing_flag && do_bonjour > 0) bonjour_kid(context, config, argv0, NULL); #endif @@ -1198,7 +1198,7 @@ start_kdc(krb5_context context, #ifdef HAVE_FORK # ifdef __APPLE__ - if (do_bonjour < 0) + if (!testing_flag && do_bonjour < 0) bonjour_kid(context, config, argv0, islive); # endif