]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
put in an extra assert, might find a bug these way
authorRoger Dingledine <arma@torproject.org>
Fri, 16 Apr 2004 04:41:07 +0000 (04:41 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 16 Apr 2004 04:41:07 +0000 (04:41 +0000)
svn:r1636

src/or/rendclient.c

index d0b80a7631bbdf639650970b29b059c0d5860e04..46fd04c049c564aa8e196ea7676811bf784c6e3f 100644 (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,