Skip to content
Merged
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions src/proxy/ParentSelection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ ParentRecord::ProcessParents(char *val, bool isPrimary)
errPtr = "Parent string is empty";
goto MERROR;
}
if (tmp3 && strlen(tmp3) > MAXDNAME) {
errPtr = "Parent hash_string is too long";
goto MERROR;
}

// Update the pRecords
if (isPrimary) {
memcpy(this->parents[i].hostname, current, tmp - current);
Expand Down
Loading