From 6392f7ca22c2e288da40c854c9db31c6a955bbe1 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 16 Apr 2004 04:41:07 +0000 Subject: [PATCH] put in an extra assert, might find a bug these way svn:r1636 --- trunk/src/or/rendclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/or/rendclient.c b/trunk/src/or/rendclient.c index d0b80a7631..46fd04c049 100644 --- a/trunk/src/or/rendclient.c +++ b/trunk/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,