]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a clang compilation warning in rendservice.c
authorNick Mathewson <nickm@torproject.org>
Fri, 1 Dec 2017 17:13:15 +0000 (12:13 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 1 Dec 2017 17:13:15 +0000 (12:13 -0500)
Fixes bug 24480; bugfix on 0.2.5.16.

changes/bug24480 [new file with mode: 0644]
src/or/rendservice.c

diff --git a/changes/bug24480 b/changes/bug24480
new file mode 100644 (file)
index 0000000..94e5b91
--- /dev/null
@@ -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.
index ba8891eade39ea92133e602ce8297e36e9af385a..80e1e10a054b4a853ec0bfd1ce19e2079f57633b 100644 (file)
@@ -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) {