Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-604

TLS crash after reconnect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.1, 3.1.16
    • Fix Version/s: 3.1.17, 3.3.2
    • Component/s: TLS/SSL
    • Labels:
      None

      Description

      Both OpenSSL and GnuTLS need to retrieve the MYSQL connection handle in case of an error via gnutls_session_get_ptr() or SSL_get_app_data() api functions.

      In case an reconnect occurred, the returned pointer still points to the stack address of tmp_mysql structure, declared in mariadb_reconnect() function. Since the content of tmp_mysql is copied to mysql, it is also necessary to update the mysql handle via gnutls_session_set_ptr() or SSL_set_app_data().

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.