summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-04-10 00:03:42 +0200
committerMichael Tänzer <neo@nhng.de>2013-04-10 00:03:42 +0200
commit2262fe14e4bf1e0afb4ab7f9340e18a9f281ddfe (patch)
treecf5a798beda55e230aacd159a583c48cca12aa38
parentc33bbc5fa64cf3aafd31867bb774997268d5819a (diff)
parenta3d0b8aa25e24616abfd35e686348b691064f9c7 (diff)
downloadcacert-devel-2262fe14e4bf1e0afb4ab7f9340e18a9f281ddfe.tar.gz
cacert-devel-2262fe14e4bf1e0afb4ab7f9340e18a9f281ddfe.tar.xz
cacert-devel-2262fe14e4bf1e0afb4ab7f9340e18a9f281ddfe.zip
Merge branch 'bug-1159' into signersigner
-rwxr-xr-xCommModule/server.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/CommModule/server.pl b/CommModule/server.pl
index b4dfdb7..6640552 100755
--- a/CommModule/server.pl
+++ b/CommModule/server.pl
@@ -955,10 +955,10 @@ sub analyze($)
if($bytes[1] == 0) # NUL Request
{
SysLog "NUL Request detected.\n";
- if($fields[1])
+ if($fields[1] =~ /^\d+\.\d+$/)
{
open OUT,">timesync.sh";
- print OUT "date -u $fields[1]\n";
+ print OUT "date -u '$fields[1]'\n";
print OUT "hwclock --systohc\n";
close OUT;
}