]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Return success when get_total_system_memory() succeeds.
authorNick Mathewson <nickm@torproject.org>
Thu, 8 May 2014 04:32:22 +0000 (00:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 May 2014 04:32:22 +0000 (00:32 -0400)
Fixes bug 11805; bugfix on 0.2.5.4-alpha.

changes/bug11805 [new file with mode: 0644]
src/common/compat.c

diff --git a/changes/bug11805 b/changes/bug11805
new file mode 100644 (file)
index 0000000..02a5538
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Correctly detect the total available system memory. We tried to do this
+      in 0.2.5.4-alpha, but the code was set up to always return an error
+      value, even on success.
+      Fixes bug 11805; bugfix on 0.2.5.4-alpha. 
index 974f697e34795b7c28bea4212bb1df785b22f0e6..7a444df1069f8ac22e35c795a2193aee81341d43 100644 (file)
@@ -3453,6 +3453,6 @@ get_total_system_memory(size_t *mem_out)
 
   *mem_out = mem_cached = (size_t) m;
 
-  return -1;
+  return 0;
 }