Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1148

NPE in Socks4LogicHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.4
    • 2.2.0
    • None
    • None

    Description

      SOCKS4 0x01 packet (establish a TCP/IP stream connection) may contain ID field to send variable-length, null-terminated user ID. However the code in org.apache.mina.proxy.handlers.socks.Socks4LogicHandler#writeRequest simply contains:

      byte[] userID = request.getUserName().getBytes("ASCII");
      

      leading to NPE, when the user ID is not set. For example camel-quickfix uses mina through quickfix-j library and username is optional.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: