diff options
author | Ryan O'Hara <rohara@redhat.com> | 2014-01-17 11:53:46 -0600 |
---|---|---|
committer | Jesper Dangaard Brouer <brouer@redhat.com> | 2014-03-06 10:58:06 +0100 |
commit | cd824937ad6588be2ec701ee87fba6ee2626e515 (patch) | |
tree | 47428e460bbe52fc4f24ec3fd4560c690a4b12ca | |
parent | ca223732af8dead20dd03dd5deb6d8b12bc618a9 (diff) | |
download | ipvsadm-cd824937ad6588be2ec701ee87fba6ee2626e515.tar.gz |
libipvs: Initialize ipvs_service_t variable
The ipvs_get_service function declares an ipvs_service_t type variable
and initializes some of the values, but should really start by
initializing the entire structure.
Signed-off-by: Ryan O'Hara <rohara@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
-rw-r--r-- | libipvs/libipvs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libipvs/libipvs.c b/libipvs/libipvs.c index d2fec49..8baafed 100644 --- a/libipvs/libipvs.c +++ b/libipvs/libipvs.c @@ -942,6 +942,7 @@ ipvs_get_service(__u32 fwmark, __u16 af, __u16 protocol, union nf_inet_addr addr if (!svc) return NULL; + memset(&tsvc, 0, sizeof(tsvc)); tsvc.fwmark = fwmark; tsvc.af = af; tsvc.protocol= protocol; |