X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finvitation.c;h=a6996cc692aee9857fc8866b3ce30a7a7c5919c2;hb=e57daac63b6f703af8e7c8209ef61a4d3b2180c3;hp=7fb96dacf00cb414e417f05964945c47e44a71ab;hpb=f0e7e6b03e34e69cac5b01a2d943ad3b9b59d36c;p=tinc diff --git a/src/invitation.c b/src/invitation.c index 7fb96dac..a6996cc6 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -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.