diff options
Diffstat (limited to 'src')
-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 8bbf372..a0c0478 100644 --- a/src/authdb.c +++ b/src/authdb.c @@ -154,7 +154,7 @@ void *authdb_get(struct authdb *adb, sockaddr_any *addr, struct authdb_entry *en if (b.len < 4) return NULL; - e = (unsigned char) b.ptr[0]; + e = (unsigned char) b.ptr[3]; b.ptr[3] = 0x00; hash = b.ptr[0] + b.ptr[1] + b.ptr[2]; |