]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Make sure the SPTSP connection get set up properly during a join.
[meshlink] / src / meshlink.c
index 5a171d2b7b1e613d2762469172c01ce5ac79a4b1..718b07a183d2d0449cdadfbef6c8881c9956d46b 100644 (file)
@@ -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);