summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-12-13 18:48:12 +0000
committerNick Mathewson <nickm@torproject.org>2004-12-13 18:48:12 +0000
commit75cefd8989eb661b614447324a0e61a6c16d9c3a (patch)
tree4b68011c03d2f36642b246f81b72c1114bd553e9
parent8c85c0bef83b75cd5f6126aa9b258097b57bb574 (diff)
downloadtor-75cefd8989eb661b614447324a0e61a6c16d9c3a.tar.gz
tor-75cefd8989eb661b614447324a0e61a6c16d9c3a.zip
Remove bugfixes that did not actually do anything, before we start a cargo cult.
svn:r3145
-rw-r--r--src/or/control.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 6c630c5103..2266d82f41 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -332,16 +332,9 @@ handle_control_setevents(connection_t *conn, uint16_t len, const char *body)
int
decode_hashed_password(char *buf, const char *hashed)
{
- size_t len = strlen(hashed)+2;
- char *base64 = tor_malloc(len);
char decoded[64];
- int r;
- if (tor_snprintf(base64, len, "%s\n", hashed)<0)
- return -1;
- if ((r = base64_decode(decoded, sizeof(decoded),
- base64, strlen(base64))) !=
- S2K_SPECIFIER_LEN+DIGEST_LEN) {
- printf("BB %d\n",r);
+ if (base64_decode(decoded, sizeof(decoded), hashed, strlen(hashed))
+ != S2K_SPECIFIER_LEN+DIGEST_LEN) {
return -1;
}
if (buf)