[systemd-commits] src/bus-driverd

Lennart Poettering lennart at kemper.freedesktop.org
Wed Jan 8 07:09:23 PST 2014


 src/bus-driverd/bus-driverd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f37925e02f562d0f705be29ec31b0053ce6f7afa
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Jan 8 23:06:48 2014 +0800

    driverd: fix use-after-free error when maintaining match lists

diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 7e0ad1e..0f79203 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -93,7 +93,7 @@ static void match_free(Match *m) {
                 first = hashmap_get(m->client->matches, m->match);
                 LIST_REMOVE(matches, first, m);
                 if (first)
-                        assert_se(hashmap_replace(m->client->matches, m->match, first) >= 0);
+                        assert_se(hashmap_replace(m->client->matches, first->match, first) >= 0);
                 else
                         hashmap_remove(m->client->matches, m->match);
 



More information about the systemd-commits mailing list