aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendmid.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-08 04:47:39 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-08 04:47:39 +0000
commitbb46d782ab6943fbceee807a12b744db0fdbe712 (patch)
treecfb5d807aa2f8524451e3bd4ed79908f86226128 /src/or/rendmid.c
parent15de2010411170c6c2bc60b652a76c8f87548939 (diff)
downloadtor-bb46d782ab6943fbceee807a12b744db0fdbe712.tar
tor-bb46d782ab6943fbceee807a12b744db0fdbe712.tar.gz
Be endianly-correct for rendezvous functionality
svn:r1565
Diffstat (limited to 'src/or/rendmid.c')
-rw-r--r--src/or/rendmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index 3e341714c..d6267a705 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -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)