mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote branch 'origin/maint-0.2.2'
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
o Minor bugfixes
|
||||
- Avoid crashes when AccountingMax is set on clients. Fixes bug 2235;
|
||||
Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
|
||||
+12
-7
@@ -529,14 +529,19 @@ accounting_set_wakeup_time(void)
|
||||
}
|
||||
}
|
||||
|
||||
format_iso_time(buf, interval_start_time);
|
||||
crypto_pk_get_digest(get_server_identity_key(), digest);
|
||||
if (server_identity_key_is_set()) {
|
||||
format_iso_time(buf, interval_start_time);
|
||||
|
||||
d_env = crypto_new_digest_env();
|
||||
crypto_digest_add_bytes(d_env, buf, ISO_TIME_LEN);
|
||||
crypto_digest_add_bytes(d_env, digest, DIGEST_LEN);
|
||||
crypto_digest_get_digest(d_env, digest, DIGEST_LEN);
|
||||
crypto_free_digest_env(d_env);
|
||||
crypto_pk_get_digest(get_server_identity_key(), digest);
|
||||
|
||||
d_env = crypto_new_digest_env();
|
||||
crypto_digest_add_bytes(d_env, buf, ISO_TIME_LEN);
|
||||
crypto_digest_add_bytes(d_env, digest, DIGEST_LEN);
|
||||
crypto_digest_get_digest(d_env, digest, DIGEST_LEN);
|
||||
crypto_free_digest_env(d_env);
|
||||
} else {
|
||||
crypto_rand(digest, DIGEST_LEN);
|
||||
}
|
||||
|
||||
if (!expected_bandwidth_usage) {
|
||||
char buf1[ISO_TIME_LEN+1];
|
||||
|
||||
Reference in New Issue
Block a user