diff options
author | Jouni Malinen <j@w1.fi> | 2014-05-16 21:01:45 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-05-17 17:05:55 (GMT) |
commit | 10b58b50297bd2a5c65b18663da02f472ac8f972 (patch) | |
tree | bc37f1236fa9edac1cd62915cc931955f6f8c0ad /src/eap_server | |
parent | 0a626a5060c4278d8a615fba3dce36ee1bba6ba8 (diff) | |
download | hostap-10b58b50297bd2a5c65b18663da02f472ac8f972.zip hostap-10b58b50297bd2a5c65b18663da02f472ac8f972.tar.gz hostap-10b58b50297bd2a5c65b18663da02f472ac8f972.tar.bz2 |
TNC: Allow TNC to be enabled dynamically
Previously, hostapd had to be started with at least one of the
configuration files enabling TNC for TNC to be usable. Change this to
allow TNC to be enabled when the first interface with TNC enabled gets
added during runtime.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_server')
-rw-r--r-- | src/eap_server/tncs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eap_server/tncs.c b/src/eap_server/tncs.c index c0b8245..dc6f689 100644 --- a/src/eap_server/tncs.c +++ b/src/eap_server/tncs.c @@ -1115,6 +1115,9 @@ int tncs_global_init(void) { struct tnc_if_imv *imv; + if (tncs_global_data) + return 0; + tncs_global_data = os_zalloc(sizeof(*tncs_global_data)); if (tncs_global_data == NULL) return -1; |