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
8 changes: 8 additions & 0 deletions source/dmlxdns/cosa_xdns_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,13 @@
break;
}

char *pEntryLog = (char *)malloc(512);
if (pEntryLog)
{
snprintf(pEntryLog, 512, "Processing XDNS entry: %s", buf);
CcspTraceInfo(("%s\n", pEntryLog));
}
Comment on lines +1271 to +1276

/*
Sample:
dnsoverride AA:BB:CC:DD:EE:FF 1.2.3.4 2001:xxx:xxx:xxx ArbitrarySting
Expand All @@ -1293,6 +1300,7 @@
if(ret < 4)
{
free(pDnsTableEntry);
CcspTraceWarning(("%s skipping invalid entry for mac: %s\n", __FUNCTION__, pDnsTableEntry->MacAddress));

Check failure

Code scanning / CodeQL

Potential use after free Critical

Memory may have been previously freed by
call to free
.
Comment on lines 1302 to +1303
continue;
}
else
Expand Down
Loading