Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19846

mariadb-10.4.6/plugin/auth_pam/auth_pam.c:104]: (style) Suspicious condition

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.4(EOL)
    • 10.4.7
    • Plugin - pam
    • None

    Description

      mariadb-10.4.6/plugin/auth_pam/auth_pam.c:104]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.

      Source code is

      if ((pkt_len= vio->read_packet(vio, &pkt) < 0))

      Maybe better code:

      if ((pkt_len = vio->read_packet(vio, &pkt)) < 0)

      Attachments

        Activity

          People

            serg Sergei Golubchik
            dcb David Binderman
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.