]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Ensure consistent use of SPTPS session labels.
[meshlink] / src / meshlink.c
index 8b0c0621a9bd2a84d2abaf3c62a77f165b9a4ebd..0f1e2738762e6a93ed898d2951b363ac721029b3 100644 (file)
@@ -1838,7 +1838,7 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) {
        }
 
        // Start an SPTPS session
-       if(!sptps_start(&mesh->sptps, mesh, true, false, key, hiskey, "meshlink invitation", 15, invitation_send, invitation_receive)) {
+       if(!sptps_start(&mesh->sptps, mesh, true, false, key, hiskey, meshlink_invitation_label, sizeof meshlink_invitation_label, invitation_send, invitation_receive)) {
                meshlink_errno = MESHLINK_EINTERNAL;
                pthread_mutex_unlock(&(mesh->mesh_mutex));
                return false;