aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-13 15:56:58 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-25 16:35:34 -0400
commit3552cd69bdeefb5d4fbbc905b24120573cc26f81 (patch)
tree38c91be8887bdf97dbe952b4f9d8946a943c07f4 /src/lib/pubsub
parent2e7f80d5f4e8b56f060516f71f13590593b1d876 (diff)
downloadtor-3552cd69bdeefb5d4fbbc905b24120573cc26f81.tar.gz
tor-3552cd69bdeefb5d4fbbc905b24120573cc26f81.zip
coverage: Exclude lines in pubsub_pub that can only be reached on bug
Diffstat (limited to 'src/lib/pubsub')
-rw-r--r--src/lib/pubsub/pubsub_publish.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pubsub/pubsub_publish.c b/src/lib/pubsub/pubsub_publish.c
index 7b070f35c5..454a335a78 100644
--- a/src/lib/pubsub/pubsub_publish.c
+++ b/src/lib/pubsub/pubsub_publish.c
@@ -49,8 +49,10 @@ pubsub_pub_(const pub_binding_t *pub, msg_aux_data_t auxdata)
if (BUG(pub->msg_template.msg >= d->n_msgs) ||
BUG(pub->msg_template.channel >= d->n_queues)) {
/* The message ID or channel ID was out of bounds. */
+ // LCOV_EXCL_START
d->typefns[pub->msg_template.type].free_fn(auxdata);
return -1;
+ // LCOV_EXCL_STOP
}
if (! d->table[pub->msg_template.msg]) {