Browse Source

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

svn:r1636
Roger Dingledine 21 years ago
parent
commit
598d8b8f79
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/rendclient.c

+ 1 - 0
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,