summaryrefslogtreecommitdiffstats
path: root/src/authdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/authdb.c')
-rw-r--r--src/authdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authdb.c b/src/authdb.c
index ed171a7..d16ba3a 100644
--- a/src/authdb.c
+++ b/src/authdb.c
@@ -223,7 +223,7 @@ int authdb_check_login(void *token, struct authdb_entry *e,
/* check username */
if (!blob_is_null(username) &&
- blob_cmp(username, BLOB_STRLEN(e->p.login_name)) != 0)
+ blob_cmp(username, BLOB_CHAR_ARRAY(e->p.login_name)) != 0)
return 0;
/* and dates */