X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconf.c;h=7cf923bc88b087c1c9da0821146780a305977379;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hp=9527c1edf5c13cda07db36b6255ec4ee777b078e;hpb=193ada771893e1d794f30869a1ed6dd1c1d3f14d;p=meshlink diff --git a/src/conf.c b/src/conf.c index 9527c1ed..7cf923bc 100644 --- a/src/conf.c +++ b/src/conf.c @@ -903,7 +903,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(time(NULL) >= 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);