static void* __netconfig_set_param_list_aes_gcm(ckmc_param_list_h param)
{
- ckmc_raw_buffer_s *iv_buf;
+ ckmc_raw_buffer_s *iv_buf = NULL;
unsigned char rnd[RND_LENGTH];
- ckmc_raw_buffer_s *aad_buf;
+ ckmc_raw_buffer_s *aad_buf = NULL;
unsigned char aad[RND_LENGTH];
err = ckmc_get_data(IV_ALIAS, NULL, &iv_buf);
g_free(origin_value));
if (__netconfig_set_param_list_aes_gcm(param) == NULL) {
+ ckmc_param_list_free(param);
g_free(origin_value);
return NULL;
}
g_free(ehexstr));
if (__netconfig_set_param_list_aes_gcm(param) == NULL) {
+ ckmc_param_list_free(param);
g_free(ehexstr);
return NULL;
}
if ((wifi == NULL) || (passphrase == NULL)) {
ERR("Invalid parameter");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
enc_data = _netconfig_encrypt_passphrase(passphrase);
if (!enc_data) {
ERR("Failed to encrypt the passphrase");
netconfig_error_dbus_method_return(context, NETCONFIG_ERROR_INTERNAL, "OperationFailed");
- return FALSE;
+ return TRUE;
}
wifi_complete_encrypt_passphrase(wifi, context, enc_data);
if ((wifi == NULL) || (enc_data == NULL)) {
ERR("Invalid parameter");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
passphrase = _netconfig_decrypt_passphrase(enc_data);
if (!passphrase) {
ERR("Failed to decrypt the passphrase");
netconfig_error_dbus_method_return(context, NETCONFIG_ERROR_INTERNAL, "OperationFailed");
- return FALSE;
+ return TRUE;
}
wifi_complete_decrypt_passphrase(wifi, context, passphrase);