From: Selva Nair Date: Wed, 30 Nov 2022 10:56:09 +0000 (-0500) Subject: Do not add leading space to pushed options X-Git-Tag: v2.6_beta1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0672e7a06437c730e27df645b9b9a5407b44ccf;p=thirdparty%2Fopenvpn.git Do not add leading space to pushed options This makes auth-token push during reneg consistent with regular PUSH_REPLY. Signed-off-by: Selva Nair Acked-by: Gert Doering 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 --- diff --git a/src/openvpn/push.c b/src/openvpn/push.c index 92a0bc2d9..f8c747d44 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -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); }