From bdb51eea95c5c196e6f288a36bac5f0fae903e8c Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 10 Nov 2010 17:19:12 +0100 Subject: [PATCH] Print out *which* socket could not be opened. --- src/main/listen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.1.4