Re: [Openvpn-devel] [PATCH 3/5] src/openvpn/auth_token.c: handle strdup errors

2024-09-09 Thread Илья Шипицин
I'll have a look, thanks! On Mon, Sep 9, 2024, 09:30 Gert Doering wrote: > Hi, > > On Mon, Jul 08, 2024 at 11:08:20PM +0200, Ilia Shipitsin wrote: > > multi->auth_token = strdup((char *)BPTR(&session_token)); > > +if (!multi->auth_token) > > +{ > > +msg( M_FATAL, "Failed all

Re: [Openvpn-devel] [PATCH 3/5] src/openvpn/auth_token.c: handle strdup errors

2024-09-09 Thread Gert Doering
Hi, On Mon, Jul 08, 2024 at 11:08:20PM +0200, Ilia Shipitsin wrote: > multi->auth_token = strdup((char *)BPTR(&session_token)); > +if (!multi->auth_token) > +{ > +msg( M_FATAL, "Failed allocate memory for multi->auth_token"); > +} I do wonder if this is the right approach

[Openvpn-devel] [PATCH 3/5] src/openvpn/auth_token.c: handle strdup errors

2024-07-08 Thread Ilia Shipitsin
Signed-off-by: Ilia Shipitsin --- src/openvpn/auth_token.c | 8 1 file changed, 8 insertions(+) diff --git a/src/openvpn/auth_token.c b/src/openvpn/auth_token.c index 6787ea7d..2278afe6 100644 --- a/src/openvpn/auth_token.c +++ b/src/openvpn/auth_token.c @@ -260,6 +260,10 @@ generate_au