X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.c;h=718b07a183d2d0449cdadfbef6c8881c9956d46b;hb=47de98b27b28e049c47ce29a056d245fb14a2576;hp=5a171d2b7b1e613d2762469172c01ce5ac79a4b1;hpb=b6ceafe7a5db5802e483795738943f01f1732926;p=meshlink diff --git a/src/meshlink.c b/src/meshlink.c index 5a171d2b..718b07a1 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -1181,6 +1181,8 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) { // Tell him we have an invitation, and give him our throw-away key. + mesh->blen = 0; + if(!sendline(mesh->sock, "0 ?%s %d.%d", b64key, PROT_MAJOR, 1)) { fprintf(stderr, "Error sending request to %s port %s: %s\n", address, port, strerror(errno)); closesocket(mesh->sock);