aboutsummaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
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