src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java
changeset 59204 7b10581e9632
parent 47216 71c04702a3d5
child 59205 afcc8af048e6
--- a/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java	Thu Nov 21 12:14:26 2019 +0000
+++ b/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java	Thu Nov 21 12:14:28 2019 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -335,6 +335,14 @@
     static native void init();
 
     static {
+        IOUtil.load();   // loads nio & net native libraries
+        java.security.AccessController.doPrivileged(
+                new java.security.PrivilegedAction<Void>() {
+                    public Void run() {
+                        System.loadLibrary("sctp");
+                        return null;
+                    }
+                });
         init();
     }
 }