From 2287c250b2eaa5d03ecb331adb8032e6567db53a Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sat, 5 Jan 2019 10:55:13 +1100 Subject: [PATCH] Revert "Revert "Fix tests/plugin/windc.c"" windc doesn't link against libkdc, so it doesn't need to check its instance; however, we will continue to export kdc_get_instance() from libkdc in case other windc plugins do link against it. --- tests/plugin/windc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/plugin/windc.c b/tests/plugin/windc.c index 8ee122f0c..cca789510 100644 --- a/tests/plugin/windc.c +++ b/tests/plugin/windc.c @@ -98,9 +98,7 @@ windc_plugin_load(krb5_context context, static uintptr_t windc_get_instance(const char *libname) { - if (strcmp(libname, "kdc") == 0) - return kdc_get_instance(libname); - else if (strcmp(libname, "hdb") == 0) + if (strcmp(libname, "hdb") == 0) return hdb_get_instance(libname); else if (strcmp(libname, "krb5") == 0) return krb5_get_instance(libname);