mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 13:34:59 +02:00
Replace some assert(1)s with nonfatal_unreached_once().
These were probably supposed to be assert(0).
This commit is contained in:
parent
272572c3a2
commit
0533d14213
@ -1738,7 +1738,7 @@ channel_get_cell_queue_entry_size(channel_t *chan, cell_queue_entry_t *q)
|
|||||||
rv = get_cell_network_size(chan->wide_circ_ids);
|
rv = get_cell_network_size(chan->wide_circ_ids);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
tor_assert(1);
|
tor_assert_nonfatal_unreached_once();
|
||||||
}
|
}
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
@ -601,7 +601,7 @@ channel_tls_get_remote_descr_method(channel_t *chan, int flags)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Something's broken in channel.c */
|
/* Something's broken in channel.c */
|
||||||
tor_assert(1);
|
tor_assert_nonfatal_unreached_once();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
strlcpy(buf, "(No connection)", sizeof(buf));
|
strlcpy(buf, "(No connection)", sizeof(buf));
|
||||||
@ -670,7 +670,7 @@ channel_tls_is_canonical_method(channel_t *chan, int req)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* This shouldn't happen; channel.c is broken if it does */
|
/* This shouldn't happen; channel.c is broken if it does */
|
||||||
tor_assert(1);
|
tor_assert_nonfatal_unreached_once();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* else return 0 for tlschan->conn == NULL */
|
/* else return 0 for tlschan->conn == NULL */
|
||||||
|
Loading…
Reference in New Issue
Block a user