mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
r307082 added the TCP_HHOOK kernel option and made some existing code only
compile when that option is configured. In tcp_destroy(), the error variable is now only used in code enclosed in an '#ifdef TCP_HHOOK' block. This broke the build for VNET images. Enclose the error variable itself in an #ifdef block. Submitted by: Shawn Webb <shawn.webb at hardenedbsd.org> Reported by: Shawn Webb <shawn.webb at hardenedbsd.org> PointyHat to: jtl
This commit is contained in:
parent
745c4aa5e8
commit
82676a28eb
1 changed files with 4 additions and 1 deletions
|
|
@ -742,7 +742,10 @@ tcp_init(void)
|
|||
static void
|
||||
tcp_destroy(void *unused __unused)
|
||||
{
|
||||
int error, n;
|
||||
int n;
|
||||
#ifdef TCP_HHOOK
|
||||
int error;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* All our processes are gone, all our sockets should be cleaned
|
||||
|
|
|
|||
Loading…
Reference in a new issue