X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_socket.c;h=bf5130d6a7dbc8f86662b96126dcba9671ba44b1;hp=149b0d3b2ecba9a17e5cd2d5e8ffd8d544a4372a;hb=480dd127c8a539036ff82a3810a0ad83136944f8;hpb=f0cf4991e2bd0e618c7020511fb12cb0b5c59a40 diff --git a/src/net_socket.c b/src/net_socket.c index 149b0d3b..bf5130d6 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -1,7 +1,7 @@ /* net_socket.c -- Handle various kinds of sockets. Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2006 Guus Sliepen + 2000-2007 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -424,7 +424,7 @@ bool handle_new_meta_connection(int sock) sockaddrunmap(&sa); c = new_connection(); - c->name = NULL; + c->name = xstrdup(""); c->outcipher = myself->connection->outcipher; c->outdigest = myself->connection->outdigest; c->outmaclength = myself->connection->outmaclength;