summaryrefslogtreecommitdiffstats
path: root/manage.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-16 01:46:24 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-16 01:46:24 +0000
commit7ef85434edf4b408405819453ca732b4e8a55049 (patch)
tree1bff2bdb49e87edc451ab40cf7c581c2e5dc5c62 /manage.c
parentbf1179323217811a611a6df2ec22868191ff7a5c (diff)
downloadopenvpn-7ef85434edf4b408405819453ca732b4e8a55049.tar.gz
openvpn-7ef85434edf4b408405819453ca732b4e8a55049.tar.xz
openvpn-7ef85434edf4b408405819453ca732b4e8a55049.zip
Fixed bug introduced in 2.1-beta3 where management
socket bind would fail. Pre-2.1-beta4 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@635 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'manage.c')
-rw-r--r--manage.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/manage.c b/manage.c
index ddded80..7be67fd 100644
--- a/manage.c
+++ b/manage.c
@@ -840,9 +840,7 @@ man_listen (struct management *man)
/*
* Bind socket
*/
- if (bind (man->connection.sd_top, (struct sockaddr *) &man->settings.local, sizeof (man->settings.local)))
- msg (M_SOCKERR, "MANAGEMENT: Cannot bind TCP socket on %s",
- print_sockaddr (&man->settings.local, &gc));
+ socket_bind (man->connection.sd_top, &man->settings.local, "MANAGEMENT");
/*
* Listen for connection