mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Fix some log messages to refer to correct control type.
svn:r3729
This commit is contained in:
parent
5f8e2c2bc4
commit
5315b61e13
1 changed files with 2 additions and 2 deletions
|
@ -494,14 +494,14 @@ handle_control_mapaddress(connection_t *conn, uint32_t len, const char *body)
|
||||||
if (!is_plausible_address(from)) {
|
if (!is_plausible_address(from)) {
|
||||||
log_fn(LOG_WARN,"Skipping invalid argument '%s' in MapAddress msg",from);
|
log_fn(LOG_WARN,"Skipping invalid argument '%s' in MapAddress msg",from);
|
||||||
} else if (!is_plausible_address(to)) {
|
} else if (!is_plausible_address(to)) {
|
||||||
log_fn(LOG_WARN,"Skipping invalid argument '%s' in AddressMap msg",to);
|
log_fn(LOG_WARN,"Skipping invalid argument '%s' in MapAddress msg",to);
|
||||||
} else if (!strcmp(from, ".") || !strcmp(from, "0.0.0.0")) {
|
} else if (!strcmp(from, ".") || !strcmp(from, "0.0.0.0")) {
|
||||||
char *addr = addressmap_register_virtual_address(
|
char *addr = addressmap_register_virtual_address(
|
||||||
strcmp(from,".") ? RESOLVED_TYPE_HOSTNAME : RESOLVED_TYPE_IPV4,
|
strcmp(from,".") ? RESOLVED_TYPE_HOSTNAME : RESOLVED_TYPE_IPV4,
|
||||||
tor_strdup(to));
|
tor_strdup(to));
|
||||||
if (!addr) {
|
if (!addr) {
|
||||||
log_fn(LOG_WARN,
|
log_fn(LOG_WARN,
|
||||||
"Unable to allocate address for '%s' in AdressMap msg", line);
|
"Unable to allocate address for '%s' in MapAddress msg",line);
|
||||||
} else {
|
} else {
|
||||||
size_t anslen = strlen(addr)+strlen(to)+2;
|
size_t anslen = strlen(addr)+strlen(to)+2;
|
||||||
char *ans = tor_malloc(anslen);
|
char *ans = tor_malloc(anslen);
|
||||||
|
|
Loading…
Add table
Reference in a new issue