Commit 9f240784 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Fix buffer overlow when checking hashed passwords


svn:r4308
parent 8666f07f
Loading
Loading
Loading
Loading
+1 −1
Changes for src/or/control.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ decode_hashed_password(char *buf, const char *hashed)
      }
  }
  if (buf)
    memcpy(buf, decoded, sizeof(decoded));
    memcpy(buf, decoded, S2K_SPECIFIER_LEN+DIGEST_LEN);
  return 0;
}