From 78b242f321795a24bc759fa4b2817dbf8619eda1 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 25 Nov 2010 22:19:01 -0800 Subject: [PATCH] use short_desc for mech name --- lib/gssapi/mech/gss_oid_to_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gssapi/mech/gss_oid_to_str.c b/lib/gssapi/mech/gss_oid_to_str.c index 9e303502a..a1d776877 100644 --- a/lib/gssapi/mech/gss_oid_to_str.c +++ b/lib/gssapi/mech/gss_oid_to_str.c @@ -84,9 +84,9 @@ gss_name_to_oid(const char *name) size_t i, partial = (size_t)-1; for (i = 0; _gss_ont_mech[i].oid; i++) { - if (strcasecmp(name, _gss_ont_mech[i].name) == 0) + if (strcasecmp(name, _gss_ont_mech[i].short_desc) == 0) return _gss_ont_mech[i].oid; - if (strncasecmp(name, _gss_ont_mech[i].name, strlen(name)) == 0) { + if (strncasecmp(name, _gss_ont_mech[i].short_desc, strlen(name)) == 0) { if (partial != (size_t)-1) return NULL; partial = i;