X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_socket.c;h=f60f2f110a276af30a7d8a60ea8700665ea168cc;hp=865df78637cddcfb57b8c8019e5ee4c44e1c2127;hb=c23fcf555ee4b69f03b76a0ffb731c3a475a77e7;hpb=41a05f59ba2c3eb5caab555f096ed1b9fbe69ee3 diff --git a/src/net_socket.c b/src/net_socket.c index 865df786..f60f2f11 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -2,6 +2,7 @@ net_socket.c -- Handle various kinds of sockets. Copyright (C) 1998-2005 Ivo Timmermans, 2000-2009 Guus Sliepen + 2009 Florian Forster 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 @@ -367,7 +368,7 @@ begin: get_config_string(c->outgoing->cfg, &address); if(!get_config_string(lookup_config(c->config_tree, "Port"), &port)) - asprintf(&port, "655"); + xasprintf(&port, "655"); c->outgoing->ai = str2addrinfo(address, port, SOCK_STREAM); free(address);