udhcpd: add code which rejects lease files with suspicious or old timestamp.

*: s/time(0)/time(NULL)/g
This commit is contained in:
Denis Vlasenko
2009-02-02 10:48:06 +00:00
parent 512c8ae053
commit 04158e0459
11 changed files with 45 additions and 43 deletions

View File

@@ -969,7 +969,7 @@ static void send_headers(int responseNum)
const char *error_page = NULL;
#endif
unsigned i;
time_t timer = time(0);
time_t timer = time(NULL);
char tmp_str[80];
int len;