From 73fcd2e4202ac9f12165626b4a81df087ed86230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 19 Oct 2010 10:10:36 +0300 Subject: authdb, blob: fix a casting error and a byte order issue --- blob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blob.c') diff --git a/blob.c b/blob.c index 2c5dd17..1604308 100644 --- a/blob.c +++ b/blob.c @@ -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); } -- cgit v1.2.3