[Patch] Fix NAME variable in subnet-* scripts for local subnets.

Florian Weik florianweik at gmail.com
Wed Sep 2 14:09:46 CEST 2015


Hi,
attached is a patch that fixes that the NAME variable in subnet-up/down
scripts for local subnets is not set. The reason for this was that there
was a "hole" in the envp array in src/subnet.c:subnet_update(). If the
subnet was local, envp[6] was NULL and the evaluation stoped there.
Actually, the name string was leaking. This is easily fixed by changing the
order in the array.
I wasn't sure if the github repo linked on the webpage is still used, since
there seems to be little activity. So again as Email, please correct me if
this is not the right way to submit a patch.

Cheers,
Florian


-- 
Florian Weik

florianweik at gmail.com
++49 157 85939252
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20150902/a01e00c2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subnet_up_name.patch
Type: text/x-patch
Size: 2115 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20150902/a01e00c2/attachment.bin>


More information about the tinc-devel mailing list