Complain about TLS only if there's a TLS subsection
authorAlan T. DeKok <aland@freeradius.org>
Tue, 28 Jun 2011 08:57:11 +0000 (10:57 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Jun 2011 08:57:11 +0000 (10:57 +0200)
src/main/realms.c

index 38a869e..3727c78 100644 (file)
@@ -684,8 +684,11 @@ static int home_server_add(realm_config_t *rc, CONF_SECTION *cs)
                }
 
 #ifndef WITH_TLS
-               cf_log_err(cf_sectiontoitem(cs), "TLS transport is not available in this executable.");
-               goto error;
+
+               if (tls) {
+                       cf_log_err(cf_sectiontoitem(cs), "TLS transport is not available in this executable.");
+                       goto error;
+               }
 #else
                /*
                 *      Parse the SSL client configuration.