Skip to content

net: fix NULL pointer reference in cipso_v4_doi_free

Guillaume Nault requested to merge gnault/centos-stream-9:bz2074605 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2074605 Upstream Status: linux.git

When allocating doi_def->map.std fails, netlbl_cipsov4_add_std() calls cipso_v4_doi_free() on a non-initialised cipso_v4_doi structure. Fix this in patch 1, by freeing the structure immediately.

Patch 2 reverts a previous buggy patch that tried to fix the same problem.

Signed-off-by: Guillaume Nault gnault@redhat.com

Merge request reports