Bug: more than one Port line in host file crashes tincd

Sandy McArthur Jr sandy at mcarthur.org
Tue May 13 19:14:24 CEST 2014


I found a tincd crash caused by having two "Port" statements in a host's
file.

I realize this is a bug in an old version of tinc that may be fixed but I
spent the past few hours tracking it down so I'm sharing it in hopes others
can make use of this info.

I was "cleaning" up my Tinc VPN of a collection of OpenWrt routers and
tincd started crashing with "Got fatal signal 11 (Segmentation fault)" in
the log file. Below is an trimmed and anonymized host config fragments that
would crash my version of tincd.

# cat ..../netname/hosts/ExampleHost
Address = host.example.org
Port = 656
Subnet = 192.168.123.0/24

-----BEGIN RSA PUBLIC KEY-----
[removed]
-----END RSA PUBLIC KEY-----
Address = host.example.org
Port = 656
Subnet = 192.168.123.0/24


# tincd --version
tinc version 1.0.19 (built Mar 14 2013 12:15:52, protocol 17)


Simply eliminating the duplicate info from the host's config would fix
things for me. I'm not sure if the non-standard port bit is relevant. Hope
that info helps someone else out.

-- 
Sandy McArthur, Jr.

"No nation could preserve its freedom in the midst of continual warfare."
- Letters and Other Writings of James Madison (1865), Vol. IV, p. 491
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20140513/038077b6/attachment.html>


More information about the tinc mailing list