From: Simon Ruderich Date: Sun, 28 Jul 2013 11:52:11 +0000 (+0200) Subject: Don't use fdopen(socket, "a+"). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=8c4e41d4ed8b3d8c3a39d3bef01feec98dc82161;hp=8c4e41d4ed8b3d8c3a39d3bef01feec98dc82161;p=tlsproxy%2Ftlsproxy.git Don't use fdopen(socket, "a+"). Using it with sockets is undefined behaviour as correct usage of a+ requires seeking which is not possible on sockets. Instead use separate read and write FILE *. ---