https://issues.apache.org/bugzilla/show_bug.cgi?id=51813
--- Comment #5 from Christopher Schultz <ch...@christopherschultz.net> --- I think this ought to do it (though I'm sure there are other places in tcnative that could afford to have this same kind of checking): Index: native/src/network.c =================================================================== --- native/src/network.c (revision 1484904) +++ native/src/network.c (working copy) @@ -587,6 +587,10 @@ tcn_ThrowAPRException(e, APR_ENOTSOCK); return -(jint)APR_ENOTSOCK; } + if(!s->net) { + tcn_ThrowAPRException(e, APR_EINVALSOCK); + return -(jint)APR_EINVALSOCK; + } TCN_ASSERT(s->opaque != NULL); TCN_ASSERT(s->jsbbuff != NULL); #ifdef TCN_DO_STATISTICS -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org