Unmap v4mapped sockaddrs.
[tinc] / src / net_socket.c
index cc79926..277b9b0 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: net_socket.c,v 1.1.2.8 2002/03/01 15:14:29 guus Exp $
+    $Id: net_socket.c,v 1.1.2.9 2002/03/17 15:59:29 guus Exp $
 */
 
 #include "config.h"
@@ -438,6 +438,8 @@ cp
       return -1;
     }
 
+  sockaddrunmap(&sa);
+
   c = new_connection();
   c->outcipher = myself->connection->outcipher;
   c->outdigest = myself->connection->outdigest;