From f3dc247038c5e718c9dc7055ca70fd57b6380e52 Mon Sep 17 00:00:00 2001 From: Kolar Uros Date: Mon, 16 Jul 2012 11:32:26 +0300 Subject: authdb: fix authdb entry location Commit 5a28c352a2f6de525 forgot to update the byte used for hash offset index. Fix that. --- src/authdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- cgit v1.2.3