[Date Prev][Date Next]
Re: Access conttrol as an overlay function
Kurt D. Zeilenga wrote:
in responses, the information (such as entry data) can be
shared (as managed by the backend). So, send_entry functions
MUST NOT alter the entry struct referenced by sr_entry.
They however can alter sr_entry to point to a different entry.
If you do provide a replacement entry, then you need to
tell send_entry to free it (REP_ENTRY_MUSTBEFREED)
This is setting rs->sr_flags = REP_ENTRY_MUSTBEFREED ?
(and, if not, manage the replacement entry memory by other
means). And if its to be freed, you cannot copy by reference
from the original entry.
So what if the complete entry should be removed from the response ?
Should I just set rs->sr_entry = 0 ? Is that safe?
And what happens with the old entry is it magically freed by the memory