summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-23 15:56:23 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-23 15:56:23 -0400
commit3ddbf2880f315784280e0b8367e5e08043b4236e (patch)
tree33f43ed6fc1367eee6f17848d0c8b1f5b00b8146 /src/or/routerparse.c
parentddaeb4deee7b2a7772baac9a09abc54b689d8437 (diff)
parentb00f10b9fd37865f3aafb358f691c758defe98e0 (diff)
downloadtor-3ddbf2880f315784280e0b8367e5e08043b4236e.tar.gz
tor-3ddbf2880f315784280e0b8367e5e08043b4236e.zip
Merge remote-tracking branch 'public/bug11275_024'
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 9e772ad21e..422278a5f8 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -680,7 +680,7 @@ router_get_dirobj_signature(const char *digest,
/** Helper: used to generate signatures for routers, directories and
* network-status objects. Given a digest in <b>digest</b> and a secret
- * <b>private_key</b>, generate an PKCS1-padded signature, BASE64-encode it,
+ * <b>private_key</b>, generate a PKCS1-padded signature, BASE64-encode it,
* surround it with -----BEGIN/END----- pairs, and write it to the
* <b>buf_len</b>-byte buffer at <b>buf</b>. Return 0 on success, -1 on
* failure.
@@ -703,6 +703,7 @@ router_append_dirobj_signature(char *buf, size_t buf_len, const char *digest,
return -1;
}
memcpy(buf+s_len, sig, sig_len+1);
+ tor_free(sig);
return 0;
}