2012-10-30 10:06:45 +00:00
|
|
|
diff -up openssh-6.1p1/sshconnect2.c.canohost openssh-6.1p1/sshconnect2.c
|
|
|
|
--- openssh-6.1p1/sshconnect2.c.canohost 2012-10-30 10:52:59.593301692 +0100
|
|
|
|
+++ openssh-6.1p1/sshconnect2.c 2012-10-30 11:01:12.870301632 +0100
|
|
|
|
@@ -699,12 +699,15 @@ userauth_gssapi(Authctxt *authctxt)
|
|
|
|
static u_int mech = 0;
|
|
|
|
OM_uint32 min;
|
2018-08-24 20:40:20 +00:00
|
|
|
int r, ok = 0;
|
2012-10-30 10:06:45 +00:00
|
|
|
- const char *gss_host;
|
|
|
|
+ const char *gss_host = NULL;
|
|
|
|
|
|
|
|
if (options.gss_server_identity)
|
|
|
|
gss_host = options.gss_server_identity;
|
|
|
|
- else if (options.gss_trust_dns)
|
|
|
|
+ else if (options.gss_trust_dns) {
|
2016-07-26 08:54:13 +00:00
|
|
|
gss_host = get_canonical_hostname(active_state, 1);
|
2018-08-24 20:40:20 +00:00
|
|
|
+ if (strcmp(gss_host, "UNKNOWN") == 0)
|
2012-10-30 10:06:45 +00:00
|
|
|
+ gss_host = authctxt->host;
|
|
|
|
+ }
|
|
|
|
else
|
|
|
|
gss_host = authctxt->host;
|
|
|
|
|