Skip to content

Commit 6cbe7ca

Browse files
authored
chore: use RTLD_LOCAL instead of RTLD_GLOBAL for Dlopen (#144)
1 parent 6ecd890 commit 6cbe7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/bindings/waf_dl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewWAFLib() (dl *WAFLib, err error) {
4343
}()
4444

4545
var handle uintptr
46-
if handle, err = purego.Dlopen(path, purego.RTLD_GLOBAL|purego.RTLD_NOW); err != nil {
46+
if handle, err = purego.Dlopen(path, purego.RTLD_LOCAL|purego.RTLD_NOW); err != nil {
4747
return nil, fmt.Errorf("load a dynamic library file: %w", err)
4848
}
4949

0 commit comments

Comments
 (0)