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

Null check too late in sun.net.httpserver.ServerImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b103

        HttpServer/ServerImpl.java:377-381:

        Notice the null check on ‘chan’ is performed after it may have been dereferenced to set the TCP_NODELAY on the channel’s socket. If chan truly can be null at that point, the check needs to be move up a few lines.

              msheppar Mark Sheppard
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: