projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
950f87b
)
driverd: fix use-after-free error when maintaining match lists
author
Lennart Poettering
<lennart@poettering.net>
Wed, 8 Jan 2014 15:06:48 +0000
(23:06 +0800)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 8 Jan 2014 15:08:35 +0000
(23:08 +0800)
src/bus-driverd/bus-driverd.c
patch
|
blob
|
history
diff --git
a/src/bus-driverd/bus-driverd.c
b/src/bus-driverd/bus-driverd.c
index
7e0ad1e
..
0f79203
100644
(file)
--- 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);