]> 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:57:46 +0000 (12:57 +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>
(cherry picked from commit d0672e7a06437c730e27df645b9b9a5407b44ccf)

src/openvpn/push.c

index 7c36530d06160e1e458520949c9b5783e056a90d..700c18e3630d3a1860fffd01e1981d284523909c 100644 (file)
@@ -536,7 +536,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);
 }