]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Do not add leading space to pushed options
authorSelva Nair <selva.nair@gmail.com>
Wed, 30 Nov 2022 10:56:09 +0000 (05:56 -0500)
committerGert Doering <gert@greenie.muc.de>
Wed, 30 Nov 2022 11:52:34 +0000 (12:52 +0100)
This makes auth-token push during reneg
consistent with regular PUSH_REPLY.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20221130105609.662402-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25583.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/push.c

index 92a0bc2d934410bcd9cf6739d645de01611f7d8e..f8c747d44b94dd16787cb3ac371548157a4f482a 100644 (file)
@@ -746,7 +746,7 @@ send_push_reply_auth_token(struct tls_multi *multi)
 
     /* Construct a mimimal control channel push reply message */
     struct buffer buf = alloc_buf_gc(PUSH_BUNDLE_SIZE, &gc);
-    buf_printf(&buf, "%s, %s", push_reply_cmd, e->option);
+    buf_printf(&buf, "%s,%s", push_reply_cmd, e->option);
     send_control_channel_string_dowork(multi, BSTR(&buf), D_PUSH);
     gc_free(&gc);
 }