From f3f09aab44117d8eb97811421b2685c295d3d585 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 28 May 2018 15:06:46 -0700 Subject: Pass realm to krb5_appdefault_* functions When getting configuration values from krb5.conf, pass the default local realm into the Kerberos appdefault functions. This will produce more correct results with krb5.conf files that specify wallet configuration for multiple realms. --- client/wallet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'client/wallet.c') diff --git a/client/wallet.c b/client/wallet.c index ed6c9b8..5a80876 100644 --- a/client/wallet.c +++ b/client/wallet.c @@ -76,6 +76,7 @@ main(int argc, char *argv[]) message_program_name = "wallet"; /* Initialize default configuration. */ + memset(&options, 0, sizeof(options)); retval = krb5_init_context(&ctx); if (retval != 0) die_krb5(ctx, retval, "cannot initialize Kerberos"); -- cgit v1.2.3