fix compiling with IPSEC_DEBUG:

it's authsize not authlen in struct auth_hash
This commit is contained in:
spz 2011-03-27 21:56:57 +00:00
parent 678d404217
commit 2fbfb83e1b
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: xform_esp.c,v 1.30 2011/02/25 20:13:10 drochner Exp $ */
/* $NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $ */
/* $FreeBSD: src/sys/netipsec/xform_esp.c,v 1.2.2.1 2003/01/24 05:11:36 sam Exp $ */
/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.30 2011/02/25 20:13:10 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $");
#include "opt_inet.h"
#ifdef __FreeBSD__
@ -1001,8 +1001,8 @@ esp_output_cb(struct cryptop *crp)
*/
esph = sav->tdb_authalgxform;
if (esph != NULL) {
m_copyback(m, m->m_pkthdr.len - esph->authlen,
esph->authlen, ipseczeroes);
m_copyback(m, m->m_pkthdr.len - esph->authsize,
esph->authsize, ipseczeroes);
}
}
#endif