diff options
Diffstat (limited to 'usr.sbin/ppp/server.c')
-rw-r--r-- | usr.sbin/ppp/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index 2a6ccfe7..5ae15f5 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: server.c,v 1.22 1998/06/27 14:18:10 brian Exp $ + * $Id: server.c,v 1.23 1998/08/02 13:01:16 brian Exp $ */ #include <sys/types.h> @@ -191,6 +191,7 @@ server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) return 0; } + server_Close(bundle); memset(&server.ifsun, '\0', sizeof server.ifsun); server.ifsun.sun_len = strlen(name); if (server.ifsun.sun_len > sizeof server.ifsun.sun_path - 1) { @@ -223,7 +224,6 @@ server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) ID0unlink(name); return 5; } - server_Close(bundle); server.fd = s; server.rm = server.ifsun.sun_path; log_Printf(LogPHASE, "Listening at local socket %s.\n", name); |