diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-26 13:14:14 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-26 13:14:14 -0500 |
commit | 9c2bc441f8acf6fb47c7cc1f09c04974ee35d694 (patch) | |
tree | 9da1d579d4c381494a90dc2341833d516dd5b7ee /src/or/consdiffmgr.c | |
parent | 7f2e23e7acc0735e5ae933535a1b617a0860e528 (diff) | |
download | tor-9c2bc441f8acf6fb47c7cc1f09c04974ee35d694.tar.gz tor-9c2bc441f8acf6fb47c7cc1f09c04974ee35d694.zip |
If out-of-disk when saving a consensus cache entry, don't BUG.
Just warn instead.
Fixes bug 24859.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r-- | src/or/consdiffmgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c index c5f55b6f3f..e2bb31e527 100644 --- a/src/or/consdiffmgr.c +++ b/src/or/consdiffmgr.c @@ -1310,8 +1310,11 @@ store_multiple(consensus_cache_entry_handle_t **handles_out, labels, body_out, bodylen_out); - if (BUG(ent == NULL)) + if (ent == NULL) { + log_warn(LD_FS, "Unable to store object %s compressed with %s.", + description, methodname); continue; + } status = CDM_DIFF_PRESENT; handles_out[i] = consensus_cache_entry_handle_new(ent); |