X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_setup.c;h=5bbaa7996b561707df82c4779267617eaf0e9be8;hp=6f7f70adbe24a58e8fdebc96fef2121f5d557f0c;hb=da3078c63a3b658573f6e2f986f69ed4d7993b3a;hpb=5cb147135184e3748c6f5e6e6203d22ab9f904f8 diff --git a/src/net_setup.c b/src/net_setup.c index 6f7f70ad..5bbaa799 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -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_setup.c,v 1.1.2.39 2003/07/23 22:17:31 guus Exp $ + $Id: net_setup.c,v 1.1.2.41 2003/07/30 11:50:45 guus Exp $ */ #include "system.h" @@ -202,7 +202,7 @@ bool setup_myself(void) char *name, *hostname, *mode, *afname, *cipher, *digest; char *address = NULL; char *envp[5]; - struct addrinfo hint, *ai, *aip; + struct addrinfo *ai, *aip, hint = {0}; bool choice; int i, err; @@ -444,8 +444,6 @@ bool setup_myself(void) /* Open sockets */ - memset(&hint, 0, sizeof(hint)); - get_config_string(lookup_config(config_tree, "BindToAddress"), &address); hint.ai_family = addressfamily;