Explorar o código

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

svn:r1636
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
598d8b8f79
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,