Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendme: Fix coverity CID 1444999 #1017

Merged
merged 1 commit into from May 13, 2019

Conversation

Labels
None yet
Projects
None yet
3 participants
@dgoulet-tor
Copy link
Contributor

@dgoulet-tor dgoulet-tor commented May 13, 2019

The code flow in theory can end up with a layer_hint to be NULL but in
practice it should never happen because with an origin circuit, we must have
the layer_hint.

Just in case, BUG() on it if we ever end up in this situation and recover by
closing the circuit.

Fixes #30467.

Signed-off-by: David Goulet dgoulet@torproject.org

The code flow in theory can end up with a layer_hint to be NULL but in
practice it should never happen because with an origin circuit, we must have
the layer_hint.

Just in case, BUG() on it if we ever end up in this situation and recover by
closing the circuit.

Fixes #30467.

Signed-off-by: David Goulet <dgoulet@torproject.org>
@coveralls
Copy link

@coveralls coveralls commented May 13, 2019

Pull Request Test Coverage Report for Build 4995

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.0008%) to 62.419%

Files with Coverage Reduction New Missed Lines %
src/core/or/relay.c 1 49.68%
Totals Coverage Status
Change from base Build 4994: -0.0008%
Covered Lines: 46505
Relevant Lines: 74505

💛 - Coveralls

@torproject-pusher torproject-pusher merged commit def96ce into torproject:master May 13, 2019
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment