]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove bugfixes that did not actually do anything, before we start a cargo cult.
authorNick Mathewson <nickm@torproject.org>
Mon, 13 Dec 2004 18:48:12 +0000 (18:48 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Dec 2004 18:48:12 +0000 (18:48 +0000)
svn:r3145

src/or/control.c

index 6c630c5103391b338ea6afa822826273cfbf4c92..2266d82f41fe61bf62dbc82b7764774f17dd77f2 100644 (file)
@@ -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)