From f73753543266917e1b96e81d65ebedc5e9d8792f Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 1 Jan 2021 17:24:57 +0100 Subject: gprs_ns2: use zero initialized memory for vty_binds Change-Id: I5635d98c52948fddcc375e1be9b1cd04aa32bc3c --- src/gb/gprs_ns2_vty2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/gprs_ns2_vty2.c b/src/gb/gprs_ns2_vty2.c index e8738c17..41daa742 100644 --- a/src/gb/gprs_ns2_vty2.c +++ b/src/gb/gprs_ns2_vty2.c @@ -108,7 +108,7 @@ static struct vty_bind *vty_bind_by_name(const char *name) static struct vty_bind *vty_bind_alloc(const char *name) { - struct vty_bind *vbind = talloc(vty_nsi, struct vty_bind); + struct vty_bind *vbind = talloc_zero(vty_nsi, struct vty_bind); if (!vbind) return NULL; -- cgit v1.2.3