Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 84479
Collapse All | Expand All

(-)src/racoon/isakmp.c (-1 / +1 lines)
Lines 1352-1358 Link Here
1352
1352
1353
		p->type = np;
1353
		p->type = np;
1354
		p->len = ntohs(gen->len);
1354
		p->len = ntohs(gen->len);
1355
		if (p->len == 0 || p->len > tlen) {
1355
		if (p->len < sizeof(struct isakmp_gen) || p->len > tlen) {
1356
			plog(LLV_DEBUG, LOCATION, NULL,
1356
			plog(LLV_DEBUG, LOCATION, NULL,
1357
				"invalid length of payload\n");
1357
				"invalid length of payload\n");
1358
			vfree(result);
1358
			vfree(result);

Return to bug 84479