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

Solaris SocketImpl methods set localport field using wrong macro

XMLWordPrintable

    • 1.0beta2
    • sparc
    • solaris_2.4
    • Not verified

      [pgt, 11/30/95]

      In java/src/solaris/java/runtime/socket.c, the methods set the
      localport field using the htons macro to convert the result of getsockname(2).
      This is incorrect.
      getsockname(2) returns sin_port in network-byte-order, and the correct
      macro to use is ntohs for converting back to host-byte-order.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: