aboutsummaryrefslogtreecommitdiffstats
path: root/common/userids.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/userids.c')
-rw-r--r--common/userids.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/userids.c b/common/userids.c
index 5e2704362..0f03896ee 100644
--- a/common/userids.c
+++ b/common/userids.c
@@ -192,7 +192,8 @@ classify_user_id (const char *name, KEYDB_SEARCH_DESC *desc, int openpgp_hack)
}
}
desc->sn = (const unsigned char*)s;
- desc->snlen = -1;
+ desc->snlen = si - s;
+ desc->snhex = 1;
if (!*si)
mode = KEYDB_SEARCH_MODE_SN;
else