|
@@ -959,9 +959,11 @@ addressmap_get_virtual_address(int type)
|
|
char tmp[TOR_ADDR_BUF_LEN];
|
|
char tmp[TOR_ADDR_BUF_LEN];
|
|
tor_addr_to_str(tmp, &addr, sizeof(tmp), 0);
|
|
tor_addr_to_str(tmp, &addr, sizeof(tmp), 0);
|
|
if (strmap_get(addressmap, tmp)) {
|
|
if (strmap_get(addressmap, tmp)) {
|
|
|
|
+ // LCOV_EXCL_START
|
|
log_warn(LD_BUG, "%s wasn't in the addressmap, but %s was.",
|
|
log_warn(LD_BUG, "%s wasn't in the addressmap, but %s was.",
|
|
buf, tmp);
|
|
buf, tmp);
|
|
continue;
|
|
continue;
|
|
|
|
+ // LCOV_EXCL_STOP
|
|
}
|
|
}
|
|
|
|
|
|
return tor_strdup(buf);
|
|
return tor_strdup(buf);
|
|
@@ -970,8 +972,10 @@ addressmap_get_virtual_address(int type)
|
|
log_warn(LD_CONFIG, "Ran out of virtual addresses!");
|
|
log_warn(LD_CONFIG, "Ran out of virtual addresses!");
|
|
return NULL;
|
|
return NULL;
|
|
} else {
|
|
} else {
|
|
|
|
+ // LCOV_EXCL_START
|
|
log_warn(LD_BUG, "Called with unsupported address type (%d)", type);
|
|
log_warn(LD_BUG, "Called with unsupported address type (%d)", type);
|
|
return NULL;
|
|
return NULL;
|
|
|
|
+ // LCOV_EXCL_STOP
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|