summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-08 23:06:48 +0800
committerLennart Poettering <lennart@poettering.net>2014-01-08 23:08:35 +0800
commitf37925e02f562d0f705be29ec31b0053ce6f7afa (patch)
tree8a613460090619f9ae3564815aa0c6f7d8bfb245 /src
parent950f87b7e569a12c3ee18b38017ccac830ae474e (diff)
driverd: fix use-after-free error when maintaining match lists
Diffstat (limited to 'src')
-rw-r--r--src/bus-driverd/bus-driverd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 7e0ad1e0c0..0f792038c4 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);