HomeClusterLabs Projects

config: Fix crash when a reload fails twice

Description

config: Fix crash when a reload fails twice

Have string values stored in char arrays in totem_config
so we don't get into a mess with the pointers.

Also remove vsftype (which hasn't been used since corosync 1)

Use strncpy even though we know the string is fine. Keep covscan happy

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
chrissie-cAuthored on Apr 6 2020, 8:42 AM
jfriesseCommitted on Apr 24 2020, 10:27 AM
Parents
rC4ddc96cd4e13: config: Don't free pointers used by transports
Branches
Unknown
Tags
Unknown

Event Timeline