View | Details | Raw Unified | Return to bug 221849
Collapse All | Expand All

(-)sys/netipsec/udpencap.c (-5 / +2 lines)
Lines 120-126 udp_ipsec_input(struct mbuf *m, int off, int af) Link Here
120
	struct udphdr *udp;
120
	struct udphdr *udp;
121
	struct ip *ip;
121
	struct ip *ip;
122
	uint32_t spi;
122
	uint32_t spi;
123
	int error, hlen;
123
	int hlen;
124
124
125
	/*
125
	/*
126
	 * Just return if packet doesn't have enough data.
126
	 * Just return if packet doesn't have enough data.
Lines 205-214 udp_ipsec_input(struct mbuf *m, int off, int af) Link Here
205
	 * will do this anyway, so don't touch them here.
205
	 * will do this anyway, so don't touch them here.
206
	 */
206
	 */
207
	ESPSTAT_INC(esps_input);
207
	ESPSTAT_INC(esps_input);
208
	error = (*sav->tdb_xform->xf_input)(m, sav, hlen, off);
208
	(*sav->tdb_xform->xf_input)(m, sav, hlen, off);
209
	if (error != 0)
210
		key_freesav(&sav);
211
212
	return (EINPROGRESS);	/* Consumed by IPsec. */
209
	return (EINPROGRESS);	/* Consumed by IPsec. */
213
}
210
}
214
211

Return to bug 221849