[srp-client] fix lease time on remove host retransmission (#7216)

This commit is contained in:
Jonathan Hui
2021-12-03 10:31:37 -08:00
committed by GitHub
parent 1267bdbf68
commit 66d76090e0
+1 -1
View File
@@ -1071,7 +1071,7 @@ Error Client::AppendUpdateLeaseOptRecord(Message &aMessage) const
leaseOption.Init();
if (mHostInfo.GetState() == kToRemove)
if ((mHostInfo.GetState() == kToRemove) || (mHostInfo.GetState() == kRemoving))
{
leaseOption.SetLeaseInterval(0);
leaseOption.SetKeyLeaseInterval(mShouldRemoveKeyLease ? 0 : mKeyLeaseInterval);