Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-12480

SSL_connect: incorrect use of return value in securesocket

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: Core Libraries
    • Labels:
      None

      Description

      In system/security/securesocket/securesocket.cpp (see code below), 'if(err < 0)' should be 'if(err <= 0)'. See SSL_connect return values: https://www.openssl.org/docs/ssl/SSL_connect.html.

      CSecureSocket::secure_connect()
      {
      int err = SSL_connect (m_ssl);
      if(err < 0)
      {
      ....

        Attachments

          Activity

            People

            Assignee:
            russwhitehead Russ Whitehead
            Reporter:
            linuxsc Silviu Chitroceanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: