DNS: copy only the length of the hardcoded string, not the length of the destination buffer.

pull/566/merge
Victor Julien 12 years ago
parent 57ed5dfd32
commit 5c08b2296f

@ -416,7 +416,7 @@ static uint16_t DNSResponseGetNameByOffset(const uint8_t * const input, const ui
SCLogDebug("qry length %u", length);
if (length == 0) {
memcpy(fqdn, "<root>", fqdn_size);
memcpy(fqdn, "<root>", 6);
SCReturnUInt(6U);
}

Loading…
Cancel
Save