Don't abort() willy-nilly in SPTPS code.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 8 Mar 2015 17:32:39 +0000 (17:32 +0000)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 8 Mar 2015 17:35:06 +0000 (17:35 +0000)
commit2e7f68ad2b51648b89c4b5c61aeb4cec67c2fbbb
tree7fada0dd8cc14e7b602551c15e9dae3548027733
parent537c3528863c4736e877c4d1b6c6579940e6df5d
Don't abort() willy-nilly in SPTPS code.

If receive_handshake() or the receive_record() user callback returns an
error, sptps_receive_data_datagram() crashes the entire process. This is
heavy-handed, makes tinc very brittle to certain failures (i.e.
unexpected packets), and is inconsistent with the rest of SPTPS code.
src/sptps.c