mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Fix a bug in displaying IPv6 addrs in test_op_ipv6_ with --verbose
The test code, if it failed, or if it was run in verbose mode, would use the wrong variable for its loop. Patch from rubiate uploaded to 19999.
This commit is contained in:
parent
2e7e635c59
commit
0e1b228aa6
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ test_addr_basic(void *arg)
|
|||
char *, "%s", \
|
||||
{ char *cp; \
|
||||
cp = print_ = tor_malloc(64); \
|
||||
for (int ii_=0;i<16;++i) { \
|
||||
tor_snprintf(cp, 3,"%02x", (unsigned)value_->s6_addr[i]);\
|
||||
for (int ii_=0;ii_<16;++ii_) { \
|
||||
tor_snprintf(cp, 3,"%02x", (unsigned)value_->s6_addr[ii_]); \
|
||||
cp += 2; \
|
||||
if (ii_ != 15) *cp++ = ':'; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Reference in a new issue