}
/* 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