> I assume that most filters that buffer data or have other saved state > across invocations stash it off of f->ctx. If that exists, you know > there is a possibility of corrupting the data stream if you remove the > filter.
Wouldn't this be better done in remove_any_filter rather than by the module? It's just asking for trouble to make sure that all module developers check f- >ctx before calling remove filter. Of course, your comment about state maintainance still applies. >If f->ctx doesn't exist, it's less likely but possible of > course. Perhaps we should make a rule that if a filter stashes data, > it better set f->ctx to non-null. > --- Aryeh Katz Secured-Services Inc.
