View | Details | Raw Unified | Return to bug 1008 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-4.3p2/sshconnect2.c.orig (-1 / +2 lines)
Lines 500-505 Link Here
500
	static u_int mech = 0;
500
	static u_int mech = 0;
501
	OM_uint32 min;
501
	OM_uint32 min;
502
	int ok = 0;
502
	int ok = 0;
503
        const char* remotehost = get_canonical_hostname(1);
503
504
504
	/* Try one GSSAPI method at a time, rather than sending them all at
505
	/* Try one GSSAPI method at a time, rather than sending them all at
505
	 * once. */
506
	 * once. */
Lines 517-523 Link Here
517
		/* My DER encoding requires length<128 */
518
		/* My DER encoding requires length<128 */
518
		if (gss_supported->elements[mech].length < 128 &&
519
		if (gss_supported->elements[mech].length < 128 &&
519
		    !GSS_ERROR(ssh_gssapi_import_name(gssctxt,
520
		    !GSS_ERROR(ssh_gssapi_import_name(gssctxt,
520
		    authctxt->host))) {
521
		    remotehost))) {
521
			ok = 1; /* Mechanism works */
522
			ok = 1; /* Mechanism works */
522
		} else {
523
		} else {
523
			mech++;
524
			mech++;

Return to bug 1008