mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix bug in tor_parse_string when Address is given as a dotted quad.
Found by Ian Goldberg and Mashael AlSabah. Bugfix on 0.2.3.0-alpha dev.
This commit is contained in:
parent
da0912c00c
commit
c109ffaef9
1 changed files with 3 additions and 0 deletions
|
@ -2413,6 +2413,9 @@ resolve_my_address(int warn_severity, or_options_t *options,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
addr = ntohl(in.s_addr); /* set addr so that addr_string is not
|
||||||
|
* illformed */
|
||||||
}
|
}
|
||||||
|
|
||||||
addr_string = tor_dup_ip(addr);
|
addr_string = tor_dup_ip(addr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue