From: Roger Dingledine Date: Fri, 16 Apr 2004 04:41:07 +0000 (+0000) Subject: put in an extra assert, might find a bug these way X-Git-Tag: tor-0.0.6incompat-merged~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=598d8b8f793831c1a747f9b84c093f606b67e059;p=thirdparty%2Ftor.git put in an extra assert, might find a bug these way svn:r1636 --- diff --git a/src/or/rendclient.c b/src/or/rendclient.c index d0b80a7631..46fd04c049 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,