--- newchannels.c.orig	Fri May 14 14:14:24 1999
+++ newchannels.c	Fri May 14 14:15:11 1999
@@ -2411,6 +2411,10 @@
      creating unix-domain sockets, you might not be able to use
      ssh-agent connections on your system */
   old_umask = umask(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
+
+  /* Make sure the socket doesn't already exist, left over from a system
+     crash perhaps. */
+   unlink(channel_forwarded_auth_socket_name);
   
   if (bind(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0)
     packet_disconnect("Agent socket bind failed: %.100s", strerror(errno));
