summaryrefslogtreecommitdiffstats
path: root/authdb.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-10-19 10:10:36 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-10-19 10:10:36 +0300
commit73fcd2e4202ac9f12165626b4a81df087ed86230 (patch)
treee37b4fbc8d82a611f3884424875320c516353e07 /authdb.c
parentc5cd32de1bea2ea0910a898bed21e68d7cc30c9f (diff)
downloadsquark-73fcd2e4202ac9f12165626b4a81df087ed86230.tar.bz2
squark-73fcd2e4202ac9f12165626b4a81df087ed86230.tar.xz
authdb, blob: fix a casting error and a byte order issue
Diffstat (limited to 'authdb.c')
-rw-r--r--authdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/authdb.c b/authdb.c
index 304c03e..e6e71c4 100644
--- a/authdb.c
+++ b/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 = b.ptr[0];
+ e = (unsigned char) b.ptr[0];
b.ptr[0] = 0x00;
hash = b.ptr[1] + b.ptr[2] + b.ptr[3];