]> tinc-vpn.org Git - tinc/blobdiff - src/invitation.c
Fix base64 decoding of Ed25519 keys.
[tinc] / src / invitation.c
index 7fb96dacf00cb414e417f05964945c47e44a71ab..a6996cc692aee9857fc8866b3ce30a7a7c5919c2 100644 (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.