diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:14 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-08-14 12:37:14 +0000 |
commit | b246c4de9be645cb5c551446c3981a65d6a76c56 (patch) | |
tree | c443278eb99feb21ac48e023b9a6b42c6db38ccd /src/or/routerparse.c | |
parent | 1a2c6b41e323e5db7dd3d7c50ba8bc8594b37411 (diff) | |
download | tor-b246c4de9be645cb5c551446c3981a65d6a76c56.tar.gz tor-b246c4de9be645cb5c551446c3981a65d6a76c56.zip |
asserting(s) is better than segfaulting if it turns out to be NULL later
svn:r16538
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 e8708ef9ef..0cc100a6e6 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2093,6 +2093,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, struct in_addr in; int i, inorder, n_signatures = 0; memarea_t *area = NULL, *rs_area = NULL; + tor_assert(s); if (router_get_networkstatus_v3_hash(s, ns_digest)) { log_warn(LD_DIR, "Unable to compute digest of network-status"); |