]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf: fix return code in _snd_config_load_with_include
authorJaroslav Kysela <perex@perex.cz>
Tue, 29 Dec 2020 10:15:46 +0000 (11:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 29 Dec 2020 10:17:58 +0000 (11:17 +0100)
Fixes: 5275d170e0 ("conf: fix use after free in _snd_config_load_with_include")
BugLink: https://github.com/alsa-project/alsa-lib/issues/108
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c

index 6cfe65bfe8cd3f9be2667e1f6f90fdef9b979622..3c943db2b5766d231de623415ce4b981a800f87b 100644 (file)
@@ -1977,6 +1977,7 @@ int _snd_config_load_with_include(snd_config_t *config, snd_input_t *in,
                err = -EINVAL;
                goto _end;
        }
+       err = 0;
  _end:
        while (fd->next) {
                fd_next = fd->next;