Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
02a43e5e
Commit
02a43e5e
authored
Nov 13, 2012
by
Nick Mathewson
⛰
Browse files
Merge remote-tracking branch 'public/bug7059'
parents
b17aa28e
0e8be13b
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug7059a
0 → 100644
View file @
02a43e5e
o Minor features (controller):
- Allow an optional $ before the node identity digest in the
controller command GETINFO ns/id/<identity>, for consistency with
md/id/<identity> and desc/id/<identity>.
src/or/networkstatus.c
View file @
02a43e5e
...
...
@@ -2374,8 +2374,11 @@ getinfo_helper_networkstatus(control_connection_t *conn,
return
0
;
}
else
if
(
!
strcmpstart
(
question
,
"ns/id/"
))
{
char
d
[
DIGEST_LEN
];
const
char
*
q
=
question
+
6
;
if
(
*
q
==
'$'
)
++
q
;
if
(
base16_decode
(
d
,
DIGEST_LEN
,
q
uestion
+
6
,
strlen
(
q
uestion
+
6
)))
{
if
(
base16_decode
(
d
,
DIGEST_LEN
,
q
,
strlen
(
q
)))
{
*
errmsg
=
"Data not decodeable as hex"
;
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment