Patch for tunnelserver mode in protocol_subnet.c
Guus Sliepen
guus at tinc-vpn.org
Wed Apr 13 16:26:12 CEST 2005
On Wed, Apr 13, 2005 at 04:14:06PM +0200, Thomas NOEL wrote:
> Le 13.04.2005 15:08, Guus Sliepen a écrit :
> >>- this checking can be made before the check of the owner, especially
> >> before any "new_node" call.
> >I agree with that.
>
> Here is a correct patch for this.
Oh, I though you only meant the if(tunnelserver && owner != myself &&
owner != c->node) return false; part. You have to do that first, because
otherwise you could allow nodes to add Subnets for other nodes.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20050413/eb537dcf/attachment.pgp
More information about the tinc-devel
mailing list