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

Coverity analysis defect 98538: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.5
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible
    • ALL

      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();
      

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

              Created:
              Updated:
              Resolved: