mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Remove two extrneous semicolons in dirserv.c
In 6fbdf635
we added a couple of statements like:
if (test) {
...
};
The extraneous semicolons there get flagged as worrisome empty
statements by the cparser library, so let's fix them.
Patch by Christian Grothoff; fixes bug 7115.
This commit is contained in:
parent
2645de704b
commit
e4821fa14d
4
changes/bug7115
Normal file
4
changes/bug7115
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (portability)
|
||||||
|
- Remove a couple of extraneous semicolos that were upsetting the
|
||||||
|
cparser library. Patch by Christian Grothoff. Fixes bug 7115;
|
||||||
|
bugfix on 0.2.2.1-alpha.
|
@ -2181,7 +2181,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
|
|||||||
"(wanted descriptor %s).",
|
"(wanted descriptor %s).",
|
||||||
id, dd);
|
id, dd);
|
||||||
return -1;
|
return -1;
|
||||||
};
|
}
|
||||||
|
|
||||||
/* This assert can fire for the control port, because
|
/* This assert can fire for the control port, because
|
||||||
* it can request NS documents before all descriptors
|
* it can request NS documents before all descriptors
|
||||||
@ -2205,7 +2205,7 @@ routerstatus_format_entry(char *buf, size_t buf_len,
|
|||||||
tor_assert(tor_memeq(desc->cache_info.signed_descriptor_digest,
|
tor_assert(tor_memeq(desc->cache_info.signed_descriptor_digest,
|
||||||
rs->descriptor_digest,
|
rs->descriptor_digest,
|
||||||
DIGEST_LEN));
|
DIGEST_LEN));
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format == NS_CONTROL_PORT && rs->has_bandwidth) {
|
if (format == NS_CONTROL_PORT && rs->has_bandwidth) {
|
||||||
|
Loading…
Reference in New Issue
Block a user