diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-05 01:35:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-05 01:35:49 +0000 |
commit | e06442b64820db59394dce140967a60dd813533a (patch) | |
tree | 4ea69904d1f65eb151e29fde7eae5b31ce3b2574 /src/or/routerparse.c | |
parent | 2be52151816dbec0d9548362775c9bc5de46372e (diff) | |
download | tor-e06442b64820db59394dce140967a60dd813533a.tar.gz tor-e06442b64820db59394dce140967a60dd813533a.zip |
Add a couple of sanity-checks for return values that coverity thinks we ought to have. CIDs 337, 335.
svn:r17485
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 701012043d..7c061d3b40 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2552,6 +2552,7 @@ networkstatus_parse_detached_signatures(const char *s, const char *eos) } tok = find_first_by_keyword(tokens, K_CONSENSUS_DIGEST); + tor_assert(tok); if (strlen(tok->args[0]) != HEX_DIGEST_LEN) { log_warn(LD_DIR, "Wrong length on consensus-digest in detached " "networkstatus signatures"); |