Hi,

On Thu, Jan 26, 2017 at 11:10:01AM +0400, Dmitry Melekhov wrote:
> > This is trac #812, and it was already fixed - to be released as part of
> > 2.4.1 "soon" (in the coming weeks).
> 
> I'll try to patch and rebuild 2.4.0.

I've appended the patch below, for easier searching.  Fairly trivial :-)

gert

From bf72ae68c05922c289056f2f851ed36014449cdf Mon Sep 17 00:00:00 2001
From: Selva Nair <selva.n...@gmail.com>
Date: Tue, 3 Jan 2017 16:42:18 -0500
Subject: [PATCH] Fix push options digest update

Trac: #812

Signed-off-by: Selva Nair <selva.n...@gmail.com>
Acked-by: Steffan Karger <steffan.kar...@fox-it.com>
Message-Id: <1483479738-17672-1-git-send-email-selva.n...@gmail.com>
URL: 
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13816.html
Signed-off-by: Gert Doering <g...@greenie.muc.de>
(cherry picked from commit a5dbf8c8dab23c47407c3f833c4f4aae52408af1)
---
 src/openvpn/push.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/openvpn/push.c b/src/openvpn/push.c
index f5154756..c9c04a63 100644
--- a/src/openvpn/push.c
+++ b/src/openvpn/push.c
@@ -692,8 +692,8 @@ push_update_digest(md_ctx_t *ctx, struct buffer *buf, const 
struct options *opt)
         {
             continue;
         }
+        md_ctx_update(ctx, (const uint8_t *) line, strlen(line)+1);
     }
-    md_ctx_update(ctx, (const uint8_t *) line, strlen(line)+1);
 }
 
 int
-- 
2.11.0


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to