Fixed untoh32 function
authorMartin Willi <martin@strongswan.org>
Wed, 23 Dec 2009 12:08:42 +0000 (13:08 +0100)
committerMartin Willi <martin@strongswan.org>
Wed, 23 Dec 2009 12:08:56 +0000 (13:08 +0100)
src/libstrongswan/utils.h

index f07e835..1ac16ec 100644 (file)
@@ -390,7 +390,7 @@ static inline u_int32_t untoh32(void *network)
        u_int32_t tmp;
 
        memcpy(&tmp, network, sizeof(tmp));
-       return ntohs(tmp);
+       return ntohl(tmp);
 }
 
 /**