Revert alloc_str changes
This reverts commitfdead26ffe. This reverts commit3e2419ebe3. This reverts commit17ce69b47a.
This commit is contained in:
@@ -217,15 +217,13 @@ METHOD(eap_method_t, process_server, status_t,
|
||||
memcpy(password, data.ptr, data.len);
|
||||
password[data.len] = '\0';
|
||||
|
||||
service = lib->settings->alloc_str(lib->settings,
|
||||
service = lib->settings->get_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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user