Fix base64 decoding of Ed25519 keys.

This commit is contained in:
Guus Sliepen 2014-06-03 11:02:58 +02:00
parent b0d80c7f28
commit ef5e8b6920
2 changed files with 2 additions and 2 deletions

View file

@ -906,7 +906,7 @@ int cmd_join(int argc, char *argv[]) {
if(!port || !*port)
port = "655";
if(!b64decode(slash, hash, 18) || !b64decode(slash + 24, cookie, 18))
if(!b64decode(slash, hash, 24) || !b64decode(slash + 24, cookie, 24))
goto invalid;
// Generate a throw-away key for the invitation.