Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/TR-181/middle_layer_src/ethernet_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,12 @@ ANSC_STATUS EthLink_GetMacAddr( PDML_ETHERNET pEntry )
return ANSC_STATUS_FAILURE;
}

if(strlen(acTmpReturnValue) == 0)
{
CcspTraceError(("[%s][%d]Received empty MAC address value\n", __FUNCTION__, __LINE__));
return ANSC_STATUS_FAILURE;
}

for(i = 0; acTmpReturnValue[i] != '\0'; i++)
{
if(acTmpReturnValue[i] != ':')
Expand Down