summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-15 19:55:03 -0700
committerDave Barach <openvpp@barachs.net>2019-08-16 14:29:42 +0000
commitd25d364d2bc146d3e17ab7c4d558bcb0ce138b89 (patch)
treeede3d4bd20c63936142f67ded06ed88fa2d5bc3b
parentf85770c4a190babdb47cb1cdc87467eaccac1f0b (diff)
tcp: fix cc algo name parsing
Type: fix The initial config parser passed a pointer to the field algo id field in tcp main. Because the field is a u8 and it was interpreted as a uword, it ended up overwrting other tcp configuration fields. Change-Id: Ie9020051c8fca40e14cf42a9888daa87360e5038 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/tcp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index 3b94420e639..327703327aa 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -1578,7 +1578,7 @@ VLIB_INIT_FUNCTION (tcp_init);
uword
unformat_tcp_cc_algo (unformat_input_t * input, va_list * va)
{
- uword *result = va_arg (*va, uword *);
+ tcp_cc_algorithm_type_e *result = va_arg (*va, tcp_cc_algorithm_type_e *);
tcp_main_t *tm = &tcp_main;
char *cc_algo_name;
u8 found = 0;