From: Jaroslav Kysela Date: Mon, 14 Nov 2005 10:18:22 +0000 (+0000) Subject: control - fixed crash when dynamic library is not present X-Git-Tag: v1.0.10~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5d3fa7b8a140cb64b17662c39fab6e47598d781c;p=alsa-lib.git control - fixed crash when dynamic library is not present See bug#1544. --- diff --git a/src/control/control.c b/src/control/control.c index bdfb14a0..cb4d92be 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -781,7 +781,7 @@ static int snd_ctl_open_conf(snd_ctl_t **ctlp, const char *name, if (!h) { SNDERR("Cannot open shared library %s", lib); err = -ENOENT; - } if (!open_func) { + } else if (!open_func) { SNDERR("symbol %s is not defined inside %s", open_name, lib); snd_dlclose(h); err = -ENXIO;