diff --git a/src/credentials/DeviceAttestationConstructor.cpp b/src/credentials/DeviceAttestationConstructor.cpp index 465363bef24f38..8a13419bf5f699 100644 --- a/src/credentials/DeviceAttestationConstructor.cpp +++ b/src/credentials/DeviceAttestationConstructor.cpp @@ -236,7 +236,7 @@ CHIP_ERROR DeconstructNOCSRElements(const ByteSpan & nocsrElements, ByteSpan & c vendor_reserved1 = vendor_reserved2 = vendor_reserved3 = ByteSpan(); tlvReader.Init(nocsrElements); - ReturnErrorOnFailure(tlvReader.Next(containerType, TLV::AnonymousTag)); + ReturnErrorOnFailure(tlvReader.Next(containerType, TLV::AnonymousTag())); ReturnErrorOnFailure(tlvReader.EnterContainer(containerType)); CHIP_ERROR error;