From: Alan T. DeKok Date: Wed, 10 Nov 2010 16:19:12 +0000 (+0100) Subject: Print out *which* socket could not be opened. X-Git-Tag: release_3_0_0_beta0~1172 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=bdb51eea95c5c196e6f288a36bac5f0fae903e8c Print out *which* socket could not be opened. --- diff --git a/src/main/listen.c b/src/main/listen.c index 57c9607..765a6b2 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -1945,7 +1945,11 @@ static int listen_bind(rad_listen_t *this) */ this->fd = socket(sock->my_ipaddr.af, sock_type, 0); if (this->fd < 0) { - radlog(L_ERR, "Failed opening socket: %s", strerror(errno)); + char buffer[256]; + + this->print(this, buffer, sizeof(buffer)); + + radlog(L_ERR, "Failed opening %s: %s", buffer, strerror(errno)); return -1; }