diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 2cb9c70..cfeba09 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -72,7 +72,7 @@ {% endif %} {% endif %} -{% if samba_mitigate_cve_2017_7494 and samba_version.stdout >= "3.5.0" and samba_version.stdout < "4.6.4" %} +{% if samba_mitigate_cve_2017_7494 and samba_version.stdout is version('3.5.0', '>=') and samba_version.stdout is version('4.6.4', '<') %} # Fix for CVE-2017-7494 in Samba versions from 3.5.0 and before 4.6.4 # https://access.redhat.com/security/cve/cve-2017-7494 nt pipe support = no