summaryrefslogtreecommitdiffstats
path: root/src/openvpn/manage.c
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2012-07-17 18:25:16 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2012-07-19 21:20:39 +0200
commit910675de28956cf8d028aed727486b64747362fb (patch)
treec42b15a45e8056baea13ea6d5bb3d3b08a63292e /src/openvpn/manage.c
parent9081e0ad4c496a0334a21fc4e8e4f1f73a470b5a (diff)
downloadopenvpn-910675de28956cf8d028aed727486b64747362fb.tar.gz
openvpn-910675de28956cf8d028aed727486b64747362fb.tar.xz
openvpn-910675de28956cf8d028aed727486b64747362fb.zip
don't treat socket related errors special anymore
WSAGetLastError() is just a wrapper for GetLastError(). So, there's no need to differentiate between socket related and other errors. This patch removes all special handling of socket errors in favor of simplifying the codebase somewhat. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: 1342542316-32563-1-git-send-email-heiko.hund@sophos.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6876 Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'src/openvpn/manage.c')
-rw-r--r--src/openvpn/manage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvpn/manage.c b/src/openvpn/manage.c
index ef5d32c..8d91675 100644
--- a/src/openvpn/manage.c
+++ b/src/openvpn/manage.c
@@ -1594,7 +1594,7 @@ man_listen (struct management *man)
* Listen for connection
*/
if (listen (man->connection.sd_top, 1))
- msg (M_SOCKERR, "MANAGEMENT: listen() failed");
+ msg (M_ERR, "MANAGEMENT: listen() failed");
/*
* Set misc socket properties
@@ -1782,7 +1782,7 @@ man_process_command (struct management *man, const char *line)
static bool
man_io_error (struct management *man, const char *prefix)
{
- const int err = openvpn_errno_socket ();
+ const int err = openvpn_errno ();
if (!ignore_sys_error (err))
{