summaryrefslogtreecommitdiff
path: root/src/or/shared_random_state.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-25 11:52:57 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-26 12:25:34 -0400
commit49d2346b805b09fde656d05a6bbf1c632a8eb903 (patch)
tree3883926dc912c57ab0b55727924dc3343012267e /src/or/shared_random_state.h
parenta5b18dfba9752d9785172dc814802c482cc77f0e (diff)
downloadtor-49d2346b805b09fde656d05a6bbf1c632a8eb903.tar.gz
tor-49d2346b805b09fde656d05a6bbf1c632a8eb903.zip
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.
Diffstat (limited to 'src/or/shared_random_state.h')
-rw-r--r--src/or/shared_random_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/shared_random_state.h b/src/or/shared_random_state.h
index a154eb5636..b6af6e1721 100644
--- a/src/or/shared_random_state.h
+++ b/src/or/shared_random_state.h
@@ -77,7 +77,7 @@ typedef struct sr_state_t {
typedef struct sr_disk_state_t {
uint32_t magic_;
/* Version of the protocol. */
- uint32_t Version;
+ int Version;
/* Version of our running tor. */
char *TorVersion;
/* Creation time of this state */