summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKolar Uros <host.uros@gmail.com>2012-07-16 11:32:26 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-07-16 11:33:45 +0300
commitf3dc247038c5e718c9dc7055ca70fd57b6380e52 (patch)
tree59e6c8a86a690c1d196c7444eab4d57de019d9b3
parent3f34430d6c6fbe92974a075e85b99b91faca506b (diff)
downloadsquark-f3dc247038c5e718c9dc7055ca70fd57b6380e52.tar.bz2
squark-f3dc247038c5e718c9dc7055ca70fd57b6380e52.tar.xz
authdb: fix authdb entry location
Commit 5a28c352a2f6de525 forgot to update the byte used for hash offset index. Fix that.
-rw-r--r--src/authdb.c2
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];