Fixed untoh32 function
This commit is contained in:
1 parent
925eadba5f
commit
f8f4f31a77
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user