Coverity analysis defect 98538: Unchecked return value

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: