rem: soap->socket = SOAP_INVALID_SOCKET;
context: soap_closesock(struct soap *soap){ register int status = soap->error;  if (status == SOAP_EOF || status == SOAP_TCP_ERROR || status == SOAP_SSL_ERROR || !soap->keep_alive)  { if (soap->fclose && (soap->error = soap->fclose(soap)))      return soap->error;    soap->socket = SOAP_INVALID_SOCKET;    soap->keep_alive = 0;  }#ifdef WITH_ZLIB  if (soap->zlib_state == SOAP_ZLIB_DEFLATE)    deflateEnd(&soap->d_stream);  else if (soap->zlib_state == SOAP_ZLIB_INFLATE)    inflateEnd(&soap->d_stream);  soap->zlib_state = SOAP_ZLIB_NONE;#endif  return soap->error = status;}