diff options
| author | xebd <xeb@mail.ru> | 2021-03-17 11:30:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-17 11:30:45 +0300 |
| commit | 02ee3cf8abebec16bf9106426e095495144c3d2f (patch) | |
| tree | d871c149812c68b7ceee591f6bb265f4ad643414 /accel-pppd/ctrl/l2tp | |
| parent | 49ef6cf969f662c44f4be2b82b101273c8c6de71 (diff) | |
| parent | 2785d81ec848ebb920c8a612b4eae7876a619a18 (diff) | |
| download | accel-ppp-02ee3cf8abebec16bf9106426e095495144c3d2f.tar.gz accel-ppp-02ee3cf8abebec16bf9106426e095495144c3d2f.zip | |
Merge pull request #153 from anphsw/master
Some bugfixes found by cppcheck
Diffstat (limited to 'accel-pppd/ctrl/l2tp')
| -rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2467189..8567027 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -4224,7 +4224,7 @@ static int l2tp_tunnel_store_msg(struct l2tp_conn_t *conn, static int l2tp_tunnel_reply(struct l2tp_conn_t *conn, int need_ack) { - const struct l2tp_attr_t *msg_attr; + const struct l2tp_attr_t *msg_attr = NULL; struct l2tp_packet_t *pack; struct l2tp_sess_t *sess; uint16_t msg_sid; @@ -4430,7 +4430,7 @@ static int l2tp_udp_read(struct triton_md_handler_t *h) { struct l2tp_serv_t *serv = container_of(h, typeof(*serv), hnd); struct l2tp_packet_t *pack; - const struct l2tp_attr_t *msg_type; + const struct l2tp_attr_t *msg_type = NULL; struct in_pktinfo pkt_info; char src_addr[17]; |
