}
/* Checking Invalid MAC Address */
- if ((strcmp(*mac_addr, "00:00:00:00:00:00") == 0) ||
+ if (*mac_addr == NULL || (strcmp(*mac_addr, "00:00:00:00:00:00") == 0) ||
(strcmp(*mac_addr, "ff:ff:ff:ff:ff:ff") == 0)) {
CONNECTION_LOG(CONNECTION_ERROR, "MAC Address(%s) is invalid", *mac_addr); //LCOV_EXCL_LINE
CONN_UNLOCK; //LCOV_EXCL_LINE
int utc_connection_reset_profile_p(void)
{
if (telephony_supported) {
- connection_reset_profile(connection, CONNECTION_RESET_DEFAULT_PROFILE,
+ int ret = connection_reset_profile(connection, CONNECTION_RESET_DEFAULT_PROFILE,
0, test_connection_reset_profile_callback, NULL);
+ CHECK_RETURN(CALLBACK_RETURN, ret, CONNECTION_ERROR_NONE);
CHECK_RETURN(CALLBACK_RETURN, g_CallbackRet, CONNECTION_ERROR_NONE);
test_connection_reset_profile_callback(CONNECTION_ERROR_NONE, NULL);
} else {