X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/76a30d074c1656141e57a3402805f07a1a5c90e8..8bb9d875e22b456711478e9d9972d458e8eb0d48:/ipif/mech-timestamp.c diff --git a/ipif/mech-timestamp.c b/ipif/mech-timestamp.c index e250c08..226f23f 100644 --- a/ipif/mech-timestamp.c +++ b/ipif/mech-timestamp.c @@ -17,7 +17,7 @@ #include "forwarder.h" struct mechdata { - uint32_t max_skew, max_age; + time_t max_skew, max_age; }; static void mds_timestamp(struct mechdata **md_r) { @@ -56,7 +56,7 @@ static const char *mdec_timestamp(struct mechdata *md, struct buffer *buf) { return cbuf; } } else if (age < 0) { - if (md->max_skew && age > md->max_skew) { + if (md->max_skew && age < -md->max_skew) { sprintf(cbuf,"too much skew (%lds)",-age); return cbuf; }