<div dir="ltr"><div>How does this fix a leak?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 7, 2021 at 7:09 AM Christian MAUDERER <<a href="mailto:christian.mauderer@embedded-brains.de">christian.mauderer@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Note that I would like to push this patch on 5-freebsd-12 as well as on <br>
master.<br>
<br>
Best regards<br>
<br>
Christian<br>
<br>
<br>
Am 07.05.21 um 14:08 schrieb Christian Mauderer:<br>
> Fixes #4404<br>
> ---<br>
> ipsec-tools/src/libipsec/pfkey.c | 7 +++++++<br>
> 1 file changed, 7 insertions(+)<br>
> <br>
> diff --git a/ipsec-tools/src/libipsec/pfkey.c b/ipsec-tools/src/libipsec/pfkey.c<br>
> index a621be12..385a21a9 100644<br>
> --- a/ipsec-tools/src/libipsec/pfkey.c<br>
> +++ b/ipsec-tools/src/libipsec/pfkey.c<br>
> @@ -1,5 +1,12 @@<br>
> #include <machine/rtems-bsd-user-space.h><br>
> <br>
> +#ifdef __rtems__<br>
> +/* Only need socket from rtems-bsd-program wrappers! */<br>
> +int<br>
> +rtems_bsd_program_socket(int domain, int type, int protocol);<br>
> +#define socket(domain, type, protocol) \<br>
> + rtems_bsd_program_socket(domain, type, protocol)<br>
> +#endif /* __rtems__ */<br>
> /* $NetBSD: pfkey.c,v 1.21.2.1 2011/11/14 13:25:06 tteras Exp $ */<br>
> <br>
> /* $KAME: pfkey.c,v 1.47 2003/10/02 19:52:12 itojun Exp $ */<br>
> <br>
<br>
-- <br>
--------------------------------------------<br>
embedded brains GmbH<br>
Herr Christian MAUDERER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:christian.mauderer@embedded-brains.de" target="_blank">christian.mauderer@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 18<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>