X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-security%2Fgssproxy%2Ffiles%2FDon-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch;fp=meta-stx%2Frecipes-security%2Fgssproxy%2Ffiles%2FDon-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch;h=bcad8ca7b723bfef414eaf8336c842e32d001458;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-security/gssproxy/files/Don-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch b/meta-stx/recipes-security/gssproxy/files/Don-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch new file mode 100644 index 0000000..bcad8ca --- /dev/null +++ b/meta-stx/recipes-security/gssproxy/files/Don-t-leak-mech_type-when-CONTINUE_NEEDED-from-init_.patch @@ -0,0 +1,27 @@ +From dd1699810efe933858badce463bece239d19e886 Mon Sep 17 00:00:00 2001 +From: Alexander Scheel +Date: Tue, 8 Aug 2017 11:36:56 -0400 +Subject: [PATCH] Don't leak mech_type when CONTINUE_NEEDED from + init_sec_context + +Signed-off-by: Alexander Scheel +Reviewed-by: Simo Sorce +Reviewed-by: Robbie Harwood +Merges: #207 +(cherry picked from commit ca26c0f58ac961a16b06c3fb93b985d574116b2c) +--- + proxy/src/gp_export.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c +index 0c39045..c9f5fd4 100644 +--- a/proxy/src/gp_export.c ++++ b/proxy/src/gp_export.c +@@ -687,6 +687,7 @@ export: + case EXP_CTX_PARTIAL: + /* this happens only when a init_sec_context call returns a partially + * initialized context so we return only what we have, not much */ ++ xdr_free((xdrproc_t)xdr_gssx_OID, (char *)&out->mech); + ret = gp_conv_oid_to_gssx(mech, &out->mech); + if (ret) { + ret_maj = GSS_S_FAILURE;