Ondřej Fibich created NET-704:
---------------------------------

             Summary: NTPUDPClient does not check response packet pairing
                 Key: NET-704
                 URL: https://issues.apache.org/jira/browse/NET-704
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 3.8.0, 3.6
            Reporter: Ondřej Fibich


NTPUDPClient does not check the originate time of response to match the 
transmit time of request. If the transmit time does not matches the originate 
time, then the computed time information is invalid. This may happen in case of:
 * invalid server implementation,
 * on packet lost/duplication if NTPUDPClient instance is used for multiple 
requests.

Fix is easy, getTime method could throw IOException in case of no match. I will 
prepare a patch.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to