diff options
author | paul <paul> | 2003-06-04 02:23:15 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-04 02:23:15 +0000 |
commit | 23b58d296f2afb9cbeb22fd11e46ba851ce51daa (patch) | |
tree | 281e1f9639eabd2ada2ade9e9423999108b0f0ba /ospfd/ospf_interface.c | |
parent | 32323dfbd057a42cab9322cac1f7a23d16f25faf (diff) | |
download | quagga-23b58d296f2afb9cbeb22fd11e46ba851ce51daa.tar.bz2 quagga-23b58d296f2afb9cbeb22fd11e46ba851ce51daa.tar.xz |
From: kamatchi soundaram <kamatchi@tdd.sj.nec.com>
Subject: [zebra 19262] Re: Memory leak in OSPF
Fix applied for Kamatchi's original report was to remove the auth_crypt
initialisation from the wrong function. This should fix that.
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r-- | ospfd/ospf_interface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 9f566a45..83abf553 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -489,6 +489,8 @@ ospf_new_if_params () UNSET_IF_PARAM (oip, auth_simple); UNSET_IF_PARAM (oip, auth_crypt); UNSET_IF_PARAM (oip, auth_type); + + oip->auth_crypt = list_new (); return oip; } @@ -623,9 +625,6 @@ ospf_if_new_hook (struct interface *ifp) SET_IF_PARAM (IF_DEF_PARAMS (ifp), auth_simple); memset (IF_DEF_PARAMS (ifp)->auth_simple, 0, OSPF_AUTH_SIMPLE_SIZE); - SET_IF_PARAM (IF_DEF_PARAMS (ifp), auth_crypt); - IF_DEF_PARAMS (ifp)->auth_crypt = list_new (); - SET_IF_PARAM (IF_DEF_PARAMS (ifp), auth_type); IF_DEF_PARAMS (ifp)->auth_type = OSPF_AUTH_NOTSET; |