diff options
| author | xebd <xeb@mail.ru> | 2018-03-04 08:29:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-04 08:29:27 +0300 |
| commit | 746438111a78e9a88b604eeac71bdbc62ff29ab7 (patch) | |
| tree | 9b7d0fdc157a59a0b241320ef3b5ace597d23aea /accel-pppd/ctrl/l2tp | |
| parent | 5ccf2f0409c18e216c4da5c7cce5e9fcf14ebf54 (diff) | |
| parent | ca152efa0c0b1a3a2cecfcdc0a72959e670b9f45 (diff) | |
| download | accel-ppp-746438111a78e9a88b604eeac71bdbc62ff29ab7.tar.gz accel-ppp-746438111a78e9a88b604eeac71bdbc62ff29ab7.zip | |
Merge pull request #45 from themiron/cppcheck-fixes
cppcheck fixes
Diffstat (limited to 'accel-pppd/ctrl/l2tp')
| -rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 55881b8..cbb9de6 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'; } |
