put in an extra assert, might find a bug these way

svn:r1636
This commit is contained in:
Roger Dingledine
2004-04-16 04:41:07 +00:00
parent ba0c5a7204
commit 6392f7ca22
+1
View File
@@ -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,