X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fconf.c;h=7cf923bc88b087c1c9da0821146780a305977379;hp=9527c1edf5c13cda07db36b6255ec4ee777b078e;hb=4c57e6902219ecca1872e18e34365d8e54a0f407;hpb=27b37a02bd75e71ed0a95ab201ba15ef4f5cb588 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);