server/crypto.c
/* There's no place in the NBD protocol to send back errors from
 * close, so this function ignores errors.
 */
There's no place in the NBD protocol to send back errors from
close, so this function ignores errors.
There ' s no place in the NBD protocol to send back errors from close so this function ignores errors .
static void
crypto_close (struct connection *conn)
{
  gnutls_session_t *session = connection_get_crypto_session (conn);
  int sockin, sockout;
  assert (session != NULL);
  gnutls_transport_get_int2 (*session, &sockin, &sockout);
  gnutls_bye (*session, GNUTLS_SHUT_RDWR);
  if (sockin >= 0)
    close (sockin);
  if (sockout >= 0 && sockin != sockout)
    close (sockout);
  gnutls_deinit (*session);
  free (session);
  connection_set_crypto_session (conn, NULL);
}
static void crypto_close ( struct connection * conn ) { gnutls_session_t * session = connection_get_crypto_session ( conn ) ; int sockin , sockout ; assert ( session != NULL ) ; gnutls_transport_get_int2 ( * session , & sockin , & sockout ) ; gnutls_bye ( * session , GNUTLS_SHUT_RDWR ) ; if ( sockin >= 0 ) close ( sockin ) ; if ( sockout >= 0 && sockin != sockout ) close ( sockout ) ; gnutls_deinit ( * session ) ; free ( session ) ; connection_set_crypto_session ( conn , NULL ) ; }
There's no place in the NBD protocol to send back errors from
 close, so this function ignores errors.
There ' s no place in the NBD protocol to send back errors from close so this function ignores errors .