aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-16 04:41:07 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-16 04:41:07 +0000
commit598d8b8f793831c1a747f9b84c093f606b67e059 (patch)
treea5e8aaf3b7fcd0a46999a8f83515eef14776c12b /src
parent4c2de3a2b6a7dcc2b1bbf8d9f10debea9db542fd (diff)
downloadtor-598d8b8f793831c1a747f9b84c093f606b67e059.tar
tor-598d8b8f793831c1a747f9b84c093f606b67e059.tar.gz
put in an extra assert, might find a bug these way
svn:r1636
Diffstat (limited to 'src')
-rw-r--r--src/or/rendclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index d0b80a763..46fd04c04 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -102,6 +102,7 @@ rend_client_send_introduction(circuit_t *introcirc, circuit_t *rendcirc) {
goto err;
}
+ assert(DIGEST_LEN + r <= RELAY_PAYLOAD_SIZE); /* we overran something */
payload_len = DIGEST_LEN + r;
if (connection_edge_send_command(NULL, introcirc,