mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Be endianly-correct for rendezvous functionality
svn:r1565
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, int request_len)
|
||||
if (request_len < 2+DIGEST_LEN)
|
||||
goto truncated;
|
||||
/* First 2 bytes: length of asn1-encoded key. */
|
||||
asn1len = get_uint16(request);
|
||||
asn1len = ntohs(get_uint16(request));
|
||||
|
||||
/* Next asn1len bytes: asn1-encoded key. */
|
||||
if (request_len < 2+DIGEST_LEN+asn1len)
|
||||
|
||||
Reference in New Issue
Block a user