Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1229991

Solaris PlainSocketImpl socketBind method uses conversion macro incorrectly

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0beta2
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      [pgt, 11/30/95]

      In java/src/solaris/java/runtime/socket.c, in the java_net_PlainSocketImpl_socketBind
      function, the following line is wrong:
          him.sin_addr.s_addr = (unsigned long) ntohl(addrptr->address);

      It is wrong to use the ntohl macro. addrptr->address is already
      in network-byte-order, which is the right form for the bind(3N) call.

        Attachments

          Activity

            People

            Assignee:
            tlindholsunw Timothy Lindholm (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: