mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 09:57:38 +00:00
[srp] always send Update Lease (UL) option in success response (#13148)
Per RFC 9664, the UL option is always included in a success response (RCODE=0). Comment in test_srp_server is updated also to avoid suggesting the opposite.
This commit is contained in:
@@ -727,8 +727,9 @@ void Server::CommitSrpUpdate(Error aError,
|
||||
exit:
|
||||
if (aMessageInfo != nullptr)
|
||||
{
|
||||
if (aError == kErrorNone && (grantedLease != hostLease || grantedKeyLease != hostKeyLease))
|
||||
if (aError == kErrorNone)
|
||||
{
|
||||
// RFC 9664: server MUST echo the Update Lease option in any successful (RCODE=0) response.
|
||||
SendResponse(aDnsHeader, grantedLease, grantedKeyLease, useShortLease, *aMessageInfo);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user