From 818e2a5455bac1db029124b5aabc8b03415f917b Mon Sep 17 00:00:00 2001
From: Ian Puleston <ipuleston@sonicwall.com>
Date: Thu, 30 Mar 2023 13:04:50 -0700
Subject: [PATCH] ITS#10035 Fix setting TLSv1.3 ciphersuite

---
 libraries/libldap/tls_o.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c
index 0a74ffa7f9..8f1d84efa1 100644
--- a/libraries/libldap/tls_o.c
+++ b/libraries/libldap/tls_o.c
@@ -335,7 +335,7 @@ tlso_ctx_cipher13( tlso_ctx *ctx, char *suites )
 				if ( !strncmp( ver, "TLSv", 4 ) && strncmp( ver+4, "1.3", 3 ) >= 0 ) {
 					if ( tls13_suites[0] )
 						ts = tlso_stecpy( ts, ":", te );
-					ts = tlso_stecpy( ts, sname, te );
+					ts = tlso_stecpy( ts, nptr, te );
 				}
 			}
 		}
-- 
GitLab
