Browse code

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 <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>

Selva Nair authored on 2022/11/30 19:56:09
Showing 1 changed files
... ...
@@ -746,7 +746,7 @@ send_push_reply_auth_token(struct tls_multi *multi)
746 746
 
747 747
     /* Construct a mimimal control channel push reply message */
748 748
     struct buffer buf = alloc_buf_gc(PUSH_BUNDLE_SIZE, &gc);
749
-    buf_printf(&buf, "%s, %s", push_reply_cmd, e->option);
749
+    buf_printf(&buf, "%s,%s", push_reply_cmd, e->option);
750 750
     send_control_channel_string_dowork(multi, BSTR(&buf), D_PUSH);
751 751
     gc_free(&gc);
752 752
 }