summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/l2tp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-03-06 10:32:29 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-03-06 10:32:29 +0300
commitb4d57a162c386ce37544c5f2a1cfc92001e0ff4a (patch)
tree9b7d0fdc157a59a0b241320ef3b5ace597d23aea /accel-pppd/ctrl/l2tp/l2tp.c
parent95e7ea02523b09cdcb0f3f6de53174fb4a6233cf (diff)
parent746438111a78e9a88b604eeac71bdbc62ff29ab7 (diff)
downloadaccel-ppp-b4d57a162c386ce37544c5f2a1cfc92001e0ff4a.tar.gz
accel-ppp-b4d57a162c386ce37544c5f2a1cfc92001e0ff4a.zip
Merge branch 'master' of github.com:xebd/accel-ppp
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.c')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 55881b8d..cbb9de6b 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -3119,7 +3119,7 @@ static int rescode_get_data(const struct l2tp_attr_t *result_attr,
return 2;
*err_msg = _malloc(msglen + 1);
- if (err_msg) {
+ if (*err_msg) {
memcpy(*err_msg, resavp->error_msg, msglen);
(*err_msg)[msglen] = '\0';
}