3.1.5.6.1.1 Receiving a Response to an INQUIRE Message
The Outstanding Resolve table MUST be checked to find an entry that sent an INQUIRE message during a resolution. If one is not found, proceed to section 3.1.5.6.1.2. Otherwise, continue processing as follows.
If the AUTHORITY message contains a CPA, then the node MUST attempt to validate the CPA, as specified in section 3.1.5.7.
If validation fails, then the node MUST discard the AUTHORITY message, attempt to pop a new entry from BestMatchStack, and place this entry (if any) in the node's CurrentBestMatch variable. If there is no new CurrentBestMatch, the node MUST return a failure to the higher-layer application or protocol; otherwise, the node MUST repeat the LOOKUP message procedure starting at step 7 of section 3.1.4.4.2.
If the resolve entry's ResolveReasonCode is equal to REASON_APP_REQUEST, the node MUST then return the endpoint information to the higher-layer application or protocol.