diff options
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/cli/tcp.c | 2 | ||||
-rw-r--r-- | accel-pppd/cli/telnet.c | 2 | ||||
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 4 | ||||
-rw-r--r-- | accel-pppd/ctrl/pppoe/disc.c | 2 | ||||
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c index 270d8cbf..87633cbe 100644 --- a/accel-pppd/cli/tcp.c +++ b/accel-pppd/cli/tcp.c @@ -298,7 +298,7 @@ static int serv_read(struct triton_md_handler_t *h) static void serv_close(struct triton_context_t *ctx) { - struct tcp_client_t *cln; + struct tcp_client_t *cln = NULL; while (!list_empty(&clients)) { cln = list_entry(clients.next, typeof(*cln), entry); diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c index 4b5f63ba..4ea18391 100644 --- a/accel-pppd/cli/telnet.c +++ b/accel-pppd/cli/telnet.c @@ -635,7 +635,7 @@ static int serv_read(struct triton_md_handler_t *h) } static void serv_close(struct triton_context_t *ctx) { - struct telnet_client_t *cln; + struct telnet_client_t *cln = NULL; while (!list_empty(&clients)) { cln = list_entry(clients.next, typeof(*cln), entry); diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2467189f..8567027d 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]; diff --git a/accel-pppd/ctrl/pppoe/disc.c b/accel-pppd/ctrl/pppoe/disc.c index a0a21751..b1119eb1 100644 --- a/accel-pppd/ctrl/pppoe/disc.c +++ b/accel-pppd/ctrl/pppoe/disc.c @@ -139,7 +139,7 @@ int pppoe_disc_start(struct pppoe_serv_t *serv) struct rb_node **p, *parent = NULL; struct tree *t; int ifindex = serv->ifindex, i; - struct pppoe_serv_t *n; + struct pppoe_serv_t *n = NULL; if (!net) { pthread_mutex_lock(&nets_lock); diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c index 045a638e..6d876495 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.c +++ b/accel-pppd/ctrl/pppoe/pppoe.c @@ -1577,7 +1577,7 @@ void _server_stop(struct pppoe_serv_t *serv) void pppoe_server_free(struct pppoe_serv_t *serv) { - struct delayed_pado_t *pado; + struct delayed_pado_t *pado = NULL; pthread_rwlock_wrlock(&serv_lock); list_del(&serv->entry); |