> You are modifying a structure owned by the caller. Look at how we build > a local copy for WS_SO_LINGER, for example. Thanks, I overlooked this aspect, you're completely right. I'll send in a new patch. Regards, Fabian Maurer