X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Fopenldap%2Ffiles%2F0013-openldap-missing-unlock-in-accesslog-overlay.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-support%2Fopenldap%2Ffiles%2F0013-openldap-missing-unlock-in-accesslog-overlay.patch;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=e2b401f70956b201f7b4ece94d6c2cd82ad52a2b;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-support/openldap/files/0013-openldap-missing-unlock-in-accesslog-overlay.patch b/meta-starlingx/meta-stx-integ/recipes-support/openldap/files/0013-openldap-missing-unlock-in-accesslog-overlay.patch deleted file mode 100644 index e2b401f..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-support/openldap/files/0013-openldap-missing-unlock-in-accesslog-overlay.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 7cc8c2c22dc6a5999554e64b25f162b3673cd922 Mon Sep 17 00:00:00 2001 -From: babak sarashki -Date: Sun, 3 Nov 2019 14:48:29 -0800 -Subject: [PATCH 13/20] openldap missing unlock in accesslog overlay - -From stx 1901: openldap-missing-unlock-in-accesslog-overlay.patch -A mutex lock might not get unlocked when plausible - -In the preceding if-statement a mutex may get locked. This is unlocked on -'done' label, but not called when plausible. Based on the current code logic -this seems to not be able to happen, but might when code gets changed at -some point in time. This patch fixes the issue. - -The issue was found by Coverity scan -http://cov01.lab.eng.brq.redhat.com/covscanhub/waiving/11054/38577/ - -Author: Matus Honek -Resolves: #1261003 ---- - servers/slapd/overlays/accesslog.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c -index 6162b57..f6d7fc1 100644 ---- a/servers/slapd/overlays/accesslog.c -+++ b/servers/slapd/overlays/accesslog.c -@@ -1517,7 +1517,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) { - - /* ignore these internal reads */ - if (( lo->mask & LOG_OP_READS ) && op->o_do_not_cache ) { -- return SLAP_CB_CONTINUE; -+ goto done; - } - - if ( li->li_success && rs->sr_err != LDAP_SUCCESS ) --- -2.17.1 -