X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_misc.c;h=713dacf19a800a2a4c357da55f79056840060d74;hb=fa432426df7e2e364e310ab4bac28e60f732a3c9;hp=a4ad73d6531c12a31d6a552e906efd812c8d800f;hpb=4c30004cb6dc23616d7295b0ce631f066e7f1f82;p=tinc diff --git a/src/protocol_misc.c b/src/protocol_misc.c index a4ad73d6..713dacf1 100644 --- a/src/protocol_misc.c +++ b/src/protocol_misc.c @@ -1,7 +1,7 @@ /* protocol_misc.c -- handle the meta-protocol, miscellaneous functions Copyright (C) 1999-2005 Ivo Timmermans, - 2000-2012 Guus Sliepen + 2000-2013 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 @@ -131,7 +131,7 @@ bool send_tcppacket(connection_t *c, const vpn_packet_t *packet) { if(!send_request(c, "%d %hd", PACKET, packet->len)) return false; - return send_meta(c, (char *)packet->data, packet->len); + return send_meta(c, (char *)DATA(packet), packet->len); } bool tcppacket_h(connection_t *c, const char *request) {