pipewire/src/modules/module-jack-tunnel
Daniel Lundqvist 8b613e20d9 module-jack-tunnel: Properly propagate error from dlopen()
dlopen() does not set errno on failure, rather you're supposed to call
dlerror() to get the latest error. dlerror() return a string so
instead return -ENOENT from weakjack_load_by_path().

Depending on errno weakjack_load() could think it successfully loaded
the library, and later module-jack-tunnel would crash because it call
a NULL function pointer.
2024-07-17 20:26:56 +02:00
..
weakjack.h module-jack-tunnel: Properly propagate error from dlopen() 2024-07-17 20:26:56 +02:00