forked from rpms/openssh
Avoid segfault on kerberos authentication failure
This commit is contained in:
parent
be6a344dcd
commit
0b6cc18df0
@ -84,7 +84,7 @@ index a5a81ed2..63f877f2 100644
|
|||||||
+ /* There is at least one other ccache in collection
|
+ /* There is at least one other ccache in collection
|
||||||
+ * we can switch to */
|
+ * we can switch to */
|
||||||
+ krb5_cc_switch(ctx, ccache);
|
+ krb5_cc_switch(ctx, ccache);
|
||||||
+ } else {
|
+ } else if (authctxt->krb5_ccname != NULL) {
|
||||||
+ /* Clean up the collection too */
|
+ /* Clean up the collection too */
|
||||||
+ strncpy(krb5_ccname, authctxt->krb5_ccname, sizeof(krb5_ccname) - 10);
|
+ strncpy(krb5_ccname, authctxt->krb5_ccname, sizeof(krb5_ccname) - 10);
|
||||||
+ krb5_ccname_dir_start = strchr(krb5_ccname, ':') + 1;
|
+ krb5_ccname_dir_start = strchr(krb5_ccname, ':') + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user