diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 10:48:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 10:48:06 +0000 |
commit | 04158e04591efea20f34c8dc83002e19056a5590 (patch) | |
tree | 1deace5081207ddefa831e024e5914a11a8aaeeb /networking/httpd.c | |
parent | 512c8ae0537ad2ffcb70db03ca50b532781ae799 (diff) | |
download | busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.tar.gz busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.tar.bz2 busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.zip |
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 3a2e6b14b..fc8b51240 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -969,7 +969,7 @@ static void send_headers(int responseNum) | |||
969 | const char *error_page = NULL; | 969 | const char *error_page = NULL; |
970 | #endif | 970 | #endif |
971 | unsigned i; | 971 | unsigned i; |
972 | time_t timer = time(0); | 972 | time_t timer = time(NULL); |
973 | char tmp_str[80]; | 973 | char tmp_str[80]; |
974 | int len; | 974 | int len; |
975 | 975 | ||