tor/changes/ticket28879
Nick Mathewson 16199a54a2 Check hostname before using it in send_resolved_hostname_cell()
Also, turn an absent hostname into a BUG(), not a crash.

Found by scan-build.

Closes ticket 28879; bugfix on 0.1.2.7-alpha
2018-12-17 09:15:37 -05:00

6 lines
271 B
Plaintext

o Minor bugfixes (correctness):
- Fix an unreached code-path where we checked the value of "hostname"
inside send_resolved_hostnam_cell(). Previously, we used it before
checking it; now we check it first. Fixes bug 28879; bugfix on
0.1.2.7-alpha.