snmpsend.pas - small fix of V3 synchronization

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@145 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2011-05-31 07:39:31 +00:00
parent b45a8ef4e9
commit d6c8fd080b

View File

@ -803,7 +803,10 @@ begin
head := head + ASNObject(s, ASN1_SEQ);
//compute engine time difference
x := TickDelta(FAuthEngineTimeStamp, GetTick) div 1000;
if FAuthEngineTimeStamp = 0 then //out of sync
x := 0
else
x := TickDelta(FAuthEngineTimeStamp, GetTick) div 1000;
authbeg := ASNObject(FAuthEngineID, ASN1_OCTSTR)
+ ASNObject(ASNEncInt(FAuthEngineBoots), ASN1_INT)