summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-14 22:47:11 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-14 22:47:11 +0000
commitfdc5751c606ae0b98bd5f85720171cff3ada94b4 (patch)
tree7bf8b43e1523efecb0e4fe0ff3578d1599408cf9 /src/or/config.c
parent5d41346b6744a0d249e3680d748325e401a9382d (diff)
downloadtor-fdc5751c606ae0b98bd5f85720171cff3ada94b4.tar.gz
tor-fdc5751c606ae0b98bd5f85720171cff3ada94b4.zip
bugfix: address that strcat vulnerability in circuit.c
svn:r1273
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 4d7787e8d0..e06a22a3fd 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -345,7 +345,7 @@ static void print_usage(void) {
);
}
-int resolve_my_address(or_options_t *options) {
+static int resolve_my_address(or_options_t *options) {
struct in_addr in;
struct hostent *rent;
char localhostname[256];
@@ -377,7 +377,7 @@ int resolve_my_address(or_options_t *options) {
assert(rent->h_length == 4);
memcpy(&in.s_addr, rent->h_addr,rent->h_length);
if(is_internal_IP(in.s_addr)) {
- log_fn(LOG_WARN,"Address '%s' resolves to '%s'. "
+ log_fn(LOG_WARN,"Address '%s' resolves to private IP '%s'. "
"Please set the Address config option to be your public IP.",
options->Address, inet_ntoa(in));
return -1;