diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2014-05-01 13:45:32 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-05-01 17:47:27 +0300 |
commit | 618bdff5f21b7b90c40fba93bafa88ceb3e522dc (patch) | |
tree | 04d5bd74aadf9e0c187bd7489eb0a00d870608f2 /src/authdb.c | |
parent | b64c621c9de3fa72ff1f1688d8453d99f5cf7352 (diff) | |
download | squark-618bdff5f21b7b90c40fba93bafa88ceb3e522dc.tar.bz2 squark-618bdff5f21b7b90c40fba93bafa88ceb3e522dc.tar.xz |
squark-filter, squark-auth-ip: avoid overflow of login_name buffer
Diffstat (limited to 'src/authdb.c')
-rw-r--r-- | src/authdb.c | 2 |
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 */ |