Found by Clang's static analyzer.
char *submesh_name = packmsg_get_str_dup(&in);
if(!strcmp(submesh_name, CORE_MESH)) {
char *submesh_name = packmsg_get_str_dup(&in);
if(!strcmp(submesh_name, CORE_MESH)) {
c->submesh = NULL;
} else {
if(!check_id(submesh_name)) {
logger(mesh, MESHLINK_ERROR, "Invalid invitation file %s\n", cookie);
c->submesh = NULL;
} else {
if(!check_id(submesh_name)) {
logger(mesh, MESHLINK_ERROR, "Invalid invitation file %s\n", cookie);
return false;
}
c->submesh = lookup_or_create_submesh(mesh, submesh_name);
return false;
}
c->submesh = lookup_or_create_submesh(mesh, submesh_name);
+ logger(mesh, MESHLINK_ERROR, "Unknown submesh in invitation file %s\n", cookie);
sptps_send_record(&c->sptps, 0, config.buf, config.len);
config_free(&config);
sptps_send_record(&c->sptps, 0, config.buf, config.len);
config_free(&config);
c->status.invitation_used = true;
c->status.invitation_used = true;