Remove calls to getprotobyname(), which we now know leaks memory on
some platforms --- and I also see that it is documented as not thread- safe on HPUX and possibly other platforms. No good reason not to just use IPPROTO_TCP constant from <netinet/in.h> instead.
Showing
Please register or sign in to comment