X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet.c;h=8ee782145cbd9b28a5d12734b50022db2dffd7ce;hb=5a132550deb58473285e5f91705d286aef47be71;hp=b811754aacf221d5de67614bdded2f510509716d;hpb=d82fcc88f355e3c8144478a860dfae0b299004a9;p=meshlink diff --git a/src/net.c b/src/net.c index b811754a..8ee78214 100644 --- a/src/net.c +++ b/src/net.c @@ -1,7 +1,7 @@ /* net.c -- most of the network code Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2006 Guus Sliepen + 2000-2009 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 @@ -203,7 +203,7 @@ static void timeout_handler(int fd, short events, void *event) { void handle_meta_connection_data(int fd, short events, void *data) { connection_t *c = data; int result; - socklen_t len = sizeof(result); + socklen_t len = sizeof result; if(c->status.connecting) { c->status.connecting = false;