Fix bad use of library, copying string over itself
[exim.git] / test / runtest
index d6bc7b03de2900acf2fa82c8a50a8215ce08b06c..e5f2a04759d374b76a8f5c4fa8dc30161a963c13 100755 (executable)
@@ -567,7 +567,8 @@ RESET_AFTER_EXTRA_LINE_READ:
   #
   # TLSversion : "TLS" - C_iph_er - MAC : ???
   #
-  s/:TLS_AES(_256)_GCM_SHA384:256/:ke-RSA-AES256-SHA:xxx/g;
+  s/TLS_AES(_256)?_GCM_SHA384(?!:)/ke-RSA-AES256-SHA/g;
+  s/:TLS_AES(_256)?_GCM_SHA384:256/:ke-RSA-AES256-SHA:xxx/g;
 
   # LibreSSL
   # TLSv1:AES256-GCM-SHA384:256