Skip to content
Snippets Groups Projects
Commit 5acfc308 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge branch 'maint-0.2.9' into maint-0.3.1

parents 068d0927 4bb7d9fd
Branches
Tags
No related merge requests found
o Minor bugfixes (C correctness):
- Fix a very unlikely null pointer dereference. Fixes bug 25629;
bugfix on 0.2.9.15. Found by Coverity; this is CID 1430932.
......@@ -291,13 +291,12 @@ nodelist_add_microdesc(microdesc_t *md)
if (rs == NULL)
return NULL;
node = node_get_mutable_by_id(rs->identity_digest);
if (node) {
if (node->md)
node->md->held_by_nodes--;
node->md = md;
md->held_by_nodes++;
}
if (node == NULL)
return NULL;
if (node->md)
node->md->held_by_nodes--;
node->md = md;
md->held_by_nodes++;
node_add_to_address_set(node);
return node;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment