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

Coverity analysis defect 98538: Unchecked return value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.3.5
    • Security
    • None
    • Fully Compatible
    • 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

            shane.harvey@mongodb.com Shane Harvey
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: