From 0b6cc18df054e5baeb486dd07bdeca61954656c8 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 25 Oct 2018 19:02:14 +0200 Subject: [PATCH] Avoid segfault on kerberos authentication failure --- openssh-7.7p1-gssapi-new-unique.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh-7.7p1-gssapi-new-unique.patch b/openssh-7.7p1-gssapi-new-unique.patch index 6ab5e2c..11ab6ee 100644 --- a/openssh-7.7p1-gssapi-new-unique.patch +++ b/openssh-7.7p1-gssapi-new-unique.patch @@ -84,7 +84,7 @@ index a5a81ed2..63f877f2 100644 + /* There is at least one other ccache in collection + * we can switch to */ + krb5_cc_switch(ctx, ccache); -+ } else { ++ } else if (authctxt->krb5_ccname != NULL) { + /* Clean up the collection too */ + strncpy(krb5_ccname, authctxt->krb5_ccname, sizeof(krb5_ccname) - 10); + krb5_ccname_dir_start = strchr(krb5_ccname, ':') + 1;