summaryrefslogtreecommitdiff
path: root/libtac
diff options
context:
space:
mode:
authorDaniel Gollub <dgollub@brocade.com>2015-06-18 10:01:15 +0200
committerDaniel Gollub <dgollub@brocade.com>2015-06-18 10:01:15 +0200
commit8acffd50c9bfbbcf0858fe291a3e9ddc61e3ee2c (patch)
tree8ce2514e8efc9d624c24396cb1a593679358ddb1 /libtac
parent28d245967752f1d3db17ba6664e459e1c1100fe8 (diff)
downloadpam_tacplus-8acffd50c9bfbbcf0858fe291a3e9ddc61e3ee2c.tar.gz
pam_tacplus-8acffd50c9bfbbcf0858fe291a3e9ddc61e3ee2c.zip
Make socket creation errno verbose
Diffstat (limited to 'libtac')
-rw-r--r--libtac/lib/connect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtac/lib/connect.c b/libtac/lib/connect.c
index a186220..ab42377 100644
--- a/libtac/lib/connect.c
+++ b/libtac/lib/connect.c
@@ -86,7 +86,8 @@ int tac_connect_single(struct addrinfo *server, const char *key, struct addrinfo
ip = tac_ntop(server->ai_addr);
if((fd=socket(server->ai_family, server->ai_socktype, server->ai_protocol)) < 0) {
- TACSYSLOG((LOG_ERR,"%s: socket creation error", __FUNCTION__))
+ TACSYSLOG((LOG_ERR,"%s: socket creation error: %s", __FUNCTION__,
+ strerror(errno)))
return LIBTAC_STATUS_CONN_ERR;
}