l2tpd: zero struct sockaddr before using it

This commit is contained in:
Alexander Couzens 2016-12-05 16:23:00 +01:00 committed by Harald Welte
parent 9aadf0cf6d
commit 6b0af57fdf
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ struct l2tpd_instance *l2i;
static int l2tp_ip_read_cb(struct osmo_fd *ofd, unsigned int what)
{
struct msgb *msg = l2tp_msgb_alloc();
struct sockaddr ss;
struct sockaddr ss = { 0 };
socklen_t ss_len = sizeof(ss);
int rc;