Closed Bargenish closed 3 years ago
Sorry the delay in looking at this, I've just merged https://github.com/jborean93/smbprotocol/pull/125 which should solve this issue. It sets the value to the maximum datetime if there is an overflow.
Awesome. thanks.
In the
DateTimeField
class the _parse_value implemention is as follows:When (for some reasons) the data being sent in the SMB2HeaderResponse contains an invalid epoch time, e.g -
94661952
, thetimedelta
method fails on OverflowError which causes the entire connection to fail even though the creds and data are ok.We implemented a monkeypatch to set the
datetime_value
todatetime.today()
in case anOverflowError
exception occurs.