Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23745

Coverity analysis defect 98538: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.5
    • Component/s: Security
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Value returned from a function is not checked for errors before being used

      Defect 98538 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/client/connection_pool.cpp
      Function mongo::ConnectionPool::acquireConnection(const mongo::HostAndPort &, mongo::Date_t, std::chrono::duration<long, std::ratio<(long)1, (long)1000>>)
      /src/mongo/client/connection_pool.cpp, line: 191
      Calling "authenticateInternalUser" without checking return value (as is done elsewhere 3 out of 5 times).

                  conn->authenticateInternalUser();

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: