diff options
author | paul <paul> | 2003-04-17 16:11:30 +0000 |
---|---|---|
committer | paul <paul> | 2003-04-17 16:11:30 +0000 |
commit | f645789b7a97ab75efbd68a11e2e0f7378e57639 (patch) | |
tree | 167aa51e27e1225ce771b197dd3c0e67b3b58a09 | |
parent | 645878f10fad10f3503da9103bc57bbd96785947 (diff) |
Denis Ovsienko <zebra@pilot.org.ua>
Subject: [zebra 18767] possible SIGSEGV
Fix incorrect memset
-rw-r--r-- | ospfd/ospf_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 270b16b9..c37e1948 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -467,11 +467,12 @@ ospf_new_if_params () struct ospf_if_params *oip; oip = XMALLOC (MTYPE_OSPF_IF_PARAMS, sizeof (struct ospf_if_params)); - memset (oip, 0, sizeof (struct ospf_if_params)); if (!oip) return NULL; + memset (oip, 0, sizeof (struct ospf_if_params)); + UNSET_IF_PARAM (oip, output_cost_cmd); UNSET_IF_PARAM (oip, transmit_delay); UNSET_IF_PARAM (oip, retransmit_interval); |