diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-14 19:03:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-14 19:03:33 +0000 |
commit | b7494ce8e925af57e0346cf79b6fea909f6ca6ae (patch) | |
tree | b27d76dd843dc10e7ab6e570e902f453e248803f | |
parent | 6d9816d9e9e58c2a9521b92c0ed408646743de22 (diff) | |
download | tor-b7494ce8e925af57e0346cf79b6fea909f6ca6ae.tar.gz tor-b7494ce8e925af57e0346cf79b6fea909f6ca6ae.zip |
r17621@catbus: nickm | 2008-01-14 14:03:29 -0500
Backport the parts of r13129 through r13133 that represent actual potential for bugs.
svn:r13134
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | contrib/tor-mingw.nsi.in | 2 | ||||
-rw-r--r-- | src/or/routerparse.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -44,6 +44,7 @@ Changes in version 0.1.2.19 - 2008-01-?? - Run correctly on platforms (like some versions of OS X 10.5) where the real limit for number of open files is OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). + - Avoid a spurious free on base64 failure. Changes in version 0.1.2.18 - 2007-10-28 diff --git a/contrib/tor-mingw.nsi.in b/contrib/tor-mingw.nsi.in index 1120400248..246320842b 100644 --- a/contrib/tor-mingw.nsi.in +++ b/contrib/tor-mingw.nsi.in @@ -9,7 +9,7 @@ !include "FileFunc.nsh" !insertmacro GetParameters -!define VERSION "@VERSION@" +!define VERSION "0.1.2.18-dev" !define INSTALLER "tor-${VERSION}-win32.exe" !define WEBSITE "https://www.torproject.org/" !define LICENSE "LICENSE" diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 5f9be844b0..d4a6047555 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -240,7 +240,6 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest, i = strlen(buf); if (base64_encode(buf+i, buf_len-i, signature, 128) < 0) { log_warn(LD_BUG,"couldn't base64-encode signature"); - tor_free(buf); return -1; } @@ -1282,6 +1281,7 @@ networkstatus_parse_from_string(const char *s) if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1) { log_warn(LD_DIR, "Missing client-versions"); + goto err; } ns->client_versions = tok->args[0]; tok->args[0] = NULL; |