net_util.c should use logical && when setting IPv6_available

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 8
    • Component/s: core-libs
    • master


      The function DEF_JNI_OnLoad(JavaVM *vm, void *reserved) in src/java.base/share/native/libnet/net_util.c has this:

      IPv6_available = IPv6_supported() & (!preferIPv4Stack);

      The use of bitwise & operator appears to be an oversight and instead it should use &&.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: