Bugzilla – Attachment #28991: Fix for generic header issue for bug #64726
p->type = np;
p->len = ntohs(gen->len);
if (p->len == 0 || p->len > tlen) {
if (p->len < sizeof(struct isakmp_gen) || p->len > tlen) {
plog(LLV_DEBUG, LOCATION, NULL,
"invalid length of payload\n");
vfree(result);