}
if (eap_data->ca_cert_path) {
- g_unlink(eap_data->ca_cert_path);
+ if (g_unlink(eap_data->ca_cert_path) < 0)
+ INFO_LOG(UG_NAME_ERR, "g_unlink fails. %s", eap_data->ca_cert_path);
+ g_free(eap_data->ca_cert_path);
eap_data->ca_cert_path = NULL;
}
if (eap_data->user_cert_path) {
- g_unlink(eap_data->user_cert_path);
+ if (g_unlink(eap_data->user_cert_path) < 0)
+ INFO_LOG(UG_NAME_ERR, "g_unlink fails. %s", eap_data->user_cert_path);
+ g_free(eap_data->user_cert_path);
eap_data->user_cert_path = NULL;
}
if (eap_data->privatekey_path) {
- g_unlink(eap_data->privatekey_path);
+ if (g_unlink(eap_data->privatekey_path) < 0)
+ INFO_LOG(UG_NAME_ERR, "g_unlink fails. %s", eap_data->privatekey_path);
+ g_free(eap_data->privatekey_path);
eap_data->privatekey_path = NULL;
}