]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_sr.c
*: Properly use memset() when zeroing
[mirror_frr.git] / ospfd / ospf_sr.c
index 090a655cee37e9a386b3f4cc7d67610fb916bc8f..8fa5ce77bb19ee4f42723b37bb62e016a1220f12 100644 (file)
@@ -608,7 +608,7 @@ int ospf_sr_init(void)
 
        osr_debug("SR (%s): Initialize SR Data Base", __func__);
 
-       memset(&OspfSR, 0, sizeof(struct ospf_sr_db));
+       memset(&OspfSR, 0, sizeof(OspfSR));
        OspfSR.status = SR_OFF;
        /* Only AREA flooding is supported in this release */
        OspfSR.scope = OSPF_OPAQUE_AREA_LSA;