]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commit
Don't use fdopen(socket, "a+").
authorSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 11:52:11 +0000 (13:52 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 28 Jul 2013 11:52:11 +0000 (13:52 +0200)
commit8c4e41d4ed8b3d8c3a39d3bef01feec98dc82161
tree6f2a0ed440862c064d1222463d9960816ee3ee54
parentf7ca2cfdbb4390a1a44aa5ae863e55245024d8f7
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 *.
src/connection.c