Browse code

Fix push options digest update

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>

Selva Nair authored on 2017/01/04 06:42:18
Showing 1 changed files
... ...
@@ -692,8 +692,8 @@ push_update_digest(md_ctx_t *ctx, struct buffer *buf, const struct options *opt)
692 692
         {
693 693
             continue;
694 694
         }
695
+        md_ctx_update(ctx, (const uint8_t *) line, strlen(line)+1);
695 696
     }
696
-    md_ctx_update(ctx, (const uint8_t *) line, strlen(line)+1);
697 697
 }
698 698
 
699 699
 int