diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2007-07-22 06:59:23 +0000 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:37 +0200 |
commit | 3449a53562d27c747e22390a94c0231d3bf8c222 (patch) | |
tree | ee0b90f6e5c6adcf42c7dcead6b80171cb51f800 | |
parent | 23da78eb6973bd9e97ad5458ab66ed27854b4ac3 (diff) |
fixed a singular-point detection failure in replay check. (Bug-ID 1714644)
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | common.c | 7 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2007-07-10 SUZUKI, Shinsuke <suz@kame.net> + * common.c: fixed a singular-point detection failure in replay check. + (Bug-ID 1714644) + 2007-06-28 SUZUKI, Shinsuke <suz@kame.net> * dhcp6s.8: fixed a typo in a manual (program name "dhcp6sctl" should be "dhcp6ctl") @@ -663,8 +663,11 @@ dhcp6_auth_replaycheck(method, prev, current) prev = ntohq(prev); current = ntohq(current); - /* we call the singular point guilty */ - if (prev == (current ^ 8000000000000000ULL)) { + /* + * we call the singular point guilty, since we cannot guess + * whether the serial number is increasing or not. + */ + if (prev == (current ^ 0x8000000000000000ULL)) { dprintf(LOG_INFO, FNAME, "detected a singular point"); return (1); } |