diff options
author | Martin Willi <martin@revosec.ch> | 2011-04-21 10:48:16 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-04-21 10:48:16 +0200 |
commit | 3e2419ebe32de72d824864eb2e0e677a7c197af1 (patch) | |
tree | 2ee06332c69629a83bdca2de75daa057174535ef /src/libcharon/plugins/eap_gtc | |
parent | 17ce69b47a1efd6234960cf7d1f50712aee61db5 (diff) | |
download | strongswan-3e2419ebe32de72d824864eb2e0e677a7c197af1.tar.bz2 strongswan-3e2419ebe32de72d824864eb2e0e677a7c197af1.tar.xz |
Use thread save settings alloc_str function where appropriate
Diffstat (limited to 'src/libcharon/plugins/eap_gtc')
-rw-r--r-- | src/libcharon/plugins/eap_gtc/eap_gtc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/plugins/eap_gtc/eap_gtc.c b/src/libcharon/plugins/eap_gtc/eap_gtc.c index c3ab07de0..8c5e88c19 100644 --- a/src/libcharon/plugins/eap_gtc/eap_gtc.c +++ b/src/libcharon/plugins/eap_gtc/eap_gtc.c @@ -217,13 +217,15 @@ METHOD(eap_method_t, process_server, status_t, memcpy(password, data.ptr, data.len); password[data.len] = '\0'; - service = lib->settings->get_str(lib->settings, + service = lib->settings->alloc_str(lib->settings, "charon.plugins.eap-gtc.pam_service", GTC_PAM_SERVICE); if (!authenticate(service, user, password)) { + free(service); return FAILED; } + free(service); return SUCCESS; } |