Skip to content
  • Kevin J. McCarthy's avatar
    Minor resource and error logic cleanup in tunnel_socket_open() · b7a93248
    Kevin J. McCarthy authored
    Free the conn->sockdata on failure.  conn->fd is not set until the
    bottom, and before it is set, conn->conn_close() will not be called.
    
    Close the pin pipe if the pout pipe fails.
    
    Call mutt_perror first on a fork failure.  Calling after the close()
    may cause errno to be changed on a close failure.
    b7a93248