From: Guus Sliepen Date: Thu, 11 Oct 2012 20:47:13 +0000 (+0200) Subject: Strip newline from incoming SPTPS requests. X-Git-Tag: release-1.1pre3~10 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=94ec8d34db0ddef14b5446975663e5ff37e27b45;hp=94ec8d34db0ddef14b5446975663e5ff37e27b45;p=tinc Strip newline from incoming SPTPS requests. Most of the code doesn't care whether requests are terminated with a newline or not, except that when requests are forwarded, it is assumed they do not have one and a newline is added. When a node using SPTPS receives a request from another SPTPS-using node, and forwards it to a non-SPTPS-using node, this will result in two consecutive newlines, which the latter node will see as an empty, and thus invalid, request. ---