xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 108 forks source link

Fix post_msg implementation bug #166

Open grandnew opened 2 years ago

grandnew commented 2 years ago

I think the error handling code of post_msg is wrongly implemented due to coding typo. The EPIPE should be also considered and then return -1, just like PPTP_write: https://github.com/xebd/accel-ppp/blob/1b8711cf75a7c278d99840112bc7a396398e0205/accel-pppd/ctrl/pptp/pptp.c#L539-L570

This pr fixes #158.