diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-10-19 10:10:36 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-10-19 10:10:36 +0300 |
commit | 73fcd2e4202ac9f12165626b4a81df087ed86230 (patch) | |
tree | e37b4fbc8d82a611f3884424875320c516353e07 /blob.c | |
parent | c5cd32de1bea2ea0910a898bed21e68d7cc30c9f (diff) | |
download | squark-73fcd2e4202ac9f12165626b4a81df087ed86230.tar.bz2 squark-73fcd2e4202ac9f12165626b4a81df087ed86230.tar.xz |
authdb, blob: fix a casting error and a byte order issue
Diffstat (limited to 'blob.c')
-rw-r--r-- | blob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ unsigned long blob_inet_addr(blob_t b) ip += blob_pull_uint(&b, 10); if (b.len != 0) return 0; - return ip; + return htonl(ip); } |