浏览代码

Fix a clang compilation warning in rendservice.c

Fixes bug 24480; bugfix on 0.2.5.16.
Nick Mathewson 6 年之前
父节点
当前提交
461e34bb3d
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      changes/bug24480
  2. 1 1
      src/or/rendservice.c

+ 3 - 0
changes/bug24480

@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Fix a signed/unsigned comparison warning introduced by our
+      fix to TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.

+ 1 - 1
src/or/rendservice.c

@@ -1162,7 +1162,7 @@ rend_service_introduce(origin_circuit_t *circuit, const uint8_t *request,
   time_t now = time(NULL);
   time_t elapsed;
   int replay;
-  size_t keylen;
+  ssize_t keylen;
 
   /* Do some initial validation and logging before we parse the cell */
   if (circuit->base_.purpose != CIRCUIT_PURPOSE_S_INTRO) {