X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_socket.c;h=1b49aeeb4090865dd357cc235e1dffc24fe0de72;hb=7b949262c4c01fdeff30a612d43f4b64f1ad426f;hp=5332ed20326702c8de68bf6ce22b6df2ea560924;hpb=4c30004cb6dc23616d7295b0ce631f066e7f1f82;p=meshlink diff --git a/src/net_socket.c b/src/net_socket.c index 5332ed20..1b49aeeb 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -674,7 +674,7 @@ void try_outgoing_connections(void) { } if(!found) { - outgoing_t *outgoing = xmalloc_and_zero(sizeof *outgoing); + outgoing_t *outgoing = xzalloc(sizeof *outgoing); outgoing->name = name; list_insert_tail(outgoing_list, outgoing); setup_outgoing_connection(outgoing);