From d46a26c1c327bf511a74d69e8a30f6ca510ad352 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 6 Dec 2016 19:46:26 +0000 Subject: [PATCH] Don't call file_read_section() on unitialized section name This can only happen if xrdp.ini is corrupted and has no sections for backends. --- xrdp/xrdp_wm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index b2dd7827..9db41c0b 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -602,6 +602,7 @@ xrdp_wm_init(struct xrdp_wm *self) /* TODO: change this and have an 'autologin' line in globals section */ file_read_sections(fd, names); + section_name[0] = '\0'; for (index = 0; index < names->count; index++) { q = (char *)list_get_item(names, index);