X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconf.c;h=ac4d71a2bc9ad1db5547eac56ba958c77900bc6c;hb=28936fda22cd778c6cdcd85468947bbbe8ed4256;hp=0363cde5fcc34c9ccd901ec644c78393a208af50;hpb=9cde0d32cf209388cc59b06b7dcb0c3432f97da5;p=meshlink diff --git a/src/conf.c b/src/conf.c index 0363cde5..ac4d71a2 100644 --- a/src/conf.c +++ b/src/conf.c @@ -645,7 +645,7 @@ bool config_scan_all(meshlink_handle_t *mesh, const char *conf_subdir, const cha assert(conf_type); if(!mesh->confbase) { - return false; + return true; } DIR *dir; @@ -843,7 +843,7 @@ bool invitation_read(meshlink_handle_t *mesh, const char *conf_subdir, const cha return false; } - if(mesh->loop.now.tv_sec > st.st_mtime + mesh->invitation_timeout) { + if(mesh->loop.now.tv_sec >= st.st_mtime + mesh->invitation_timeout) { logger(mesh, MESHLINK_ERROR, "Peer tried to use an outdated invitation file %s\n", name); fclose(f); unlink(used_path);