mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Don't follow the NULL pointer.
If dirvote_create_microdescriptor() returns NULL, don't use md. Found by "f. tp.". Fixes bug 6797.
This commit is contained in:
parent
f6639d5676
commit
93ee62297f
3
changes/bug6797
Normal file
3
changes/bug6797
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes:
|
||||
- Don't follow the NULL pointer. Found by "f. tp.". Fixes bug
|
||||
6797; bugfix on 0.2.4.1-alpha.
|
@ -2800,10 +2800,10 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
|
||||
h->microdesc_hash_line = tor_strdup(buf);
|
||||
h->next = vrs->microdesc;
|
||||
vrs->microdesc = h;
|
||||
}
|
||||
md->last_listed = now;
|
||||
smartlist_add(microdescriptors, md);
|
||||
}
|
||||
}
|
||||
|
||||
smartlist_add(routerstatuses, vrs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user