summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrandnew <40992447+grandnew@users.noreply.github.com>2024-11-15 10:28:35 +0800
committerGitHub <noreply@github.com>2024-11-15 10:28:35 +0800
commitb6500a8df22c94fcf8d5dc583d85be6ddc5d51ec (patch)
treee3bcd8ddaa1544dc45d9bc790213a939bc121157
parent28698ec7428b5914ab552c598d602298f9a401b4 (diff)
downloadaccel-ppp-b6500a8df22c94fcf8d5dc583d85be6ddc5d51ec.tar.gz
accel-ppp-b6500a8df22c94fcf8d5dc583d85be6ddc5d51ec.zip
Fix post_msg implementation bug
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
-rw-r--r--accel-pppd/ctrl/pptp/pptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c
index cc5720f7..24984db8 100644
--- a/accel-pppd/ctrl/pptp/pptp.c
+++ b/accel-pppd/ctrl/pptp/pptp.c
@@ -142,8 +142,8 @@ again:
if (errno != EPIPE) {
if (conf_verbose)
log_ppp_info2("pptp: write: %s\n", strerror(errno));
- return -1;
}
+ return -1;
}
}