mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Type bug in shared_random_state -- make sure Version is int.
The confparse field has type UINT, which corresponds to an int type. We had uint32_t. This shouldn't cause trouble in practice, since int happens to 4-bytes wide on every platform where an authority is running. It's still wrong, though.
This commit is contained in:
parent
a5b18dfba9
commit
49d2346b80
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ typedef struct sr_state_t {
|
||||||
typedef struct sr_disk_state_t {
|
typedef struct sr_disk_state_t {
|
||||||
uint32_t magic_;
|
uint32_t magic_;
|
||||||
/* Version of the protocol. */
|
/* Version of the protocol. */
|
||||||
uint32_t Version;
|
int Version;
|
||||||
/* Version of our running tor. */
|
/* Version of our running tor. */
|
||||||
char *TorVersion;
|
char *TorVersion;
|
||||||
/* Creation time of this state */
|
/* Creation time of this state */
|
||||||
|
|
Loading…
Add table
Reference in a new issue