HomeClusterLabs Projects
Diffusion Booth 24eb02003fee

attr: Fix glib hash_table != NULL assert
24eb02003feeUnpublished

Unpublished Commit ยท Learn More

  • Repository Importing: This repository is still importing.
  • Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

attr: Fix glib hash_table != NULL assert

Ticket attribute hash table is created only when some attribute exists.
If it doesn't, list and get operations were producing glib assert.

Patch adds check in attr_get and attr_list so hash table is used only
when it has been initialized.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Oct 5 2023, 3:33 AM
Dejan Muhamedagic <dejanmm@fastmail.fm>Committed on Oct 20 2023, 8:38 AM
Parents
rBd9b1f0dd43ad: attr: Fix memory leak for list and get operation
Branches
Unknown
Tags
Unknown

Event Timeline