]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix push options digest update
authorSelva Nair <selva.nair@gmail.com>
Tue, 3 Jan 2017 21:42:18 +0000 (16:42 -0500)
committerGert Doering <gert@greenie.muc.de>
Wed, 4 Jan 2017 07:11:37 +0000 (08:11 +0100)
Trac: #812

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <1483479738-17672-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13816.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit a5dbf8c8dab23c47407c3f833c4f4aae52408af1)

src/openvpn/push.c

index f5154756a9c35eade99fff5674b6ce57b823465c..c9c04a630c99ce6e55d6d7d45d2b81b8e5cb50a9 100644 (file)
@@ -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