control: Wrong check on base16_decode return value
commit4a9f6894300781b998b0753dd0f5a388bb61cc91
authorDavid Goulet <dgoulet@torproject.org>
Fri, 21 Apr 2017 15:49:30 +0000 (21 11:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 24 Apr 2017 13:20:13 +0000 (24 09:20 -0400)
tree192b0d8fa6baae2496a182ae80ea6d54b531bde3
parent7d7770f7359763871667e0150aebc50856f9d5fd
control: Wrong check on base16_decode return value

The GETINFO extra-info/digest/<digest> broke in commit 568dc27a19 that
refactored the base16_decode() API to return the decoded length.
Unfortunately, that if() condition should have checked for the correct length
instead of an error which broke the command in tor-0.2.9.1-alpha.

Fixes #22034

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug22034 [new file with mode: 0644]
src/or/control.c