]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing offset
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 21:31:53 +0000 (21:31 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 21:31:53 +0000 (21:31 +0000)
svn:r1492

src/or/rendservice.c

index dbb77a61466d76d1d3fc103d55b1c38a0cd8b57e..177716f8f0791615b255a672cb16a1666de8c0b5 100644 (file)
@@ -355,7 +355,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
   }
   /* Next N bytes is encrypted with service key */
   len = crypto_pk_private_hybrid_decrypt(
-       service->private_key,request,request_len-DIGEST_LEN,buf,
+       service->private_key,request+DIGEST_LEN,request_len-DIGEST_LEN,buf,
        PK_PKCS1_OAEP_PADDING);
   if (len<0) {
     log_fn(LOG_WARN, "Couldn't decrypt INTRODUCE2 cell");