quic: fix quic_config_fn cfg cmd parse error 28/35328/3
authorfanxb <fxb_mail@163.com>
Tue, 15 Feb 2022 06:19:04 +0000 (14:19 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 15 Feb 2022 20:29:22 +0000 (20:29 +0000)
Type:fix

Signed-off-by: fanxb <fxb_mail@163.com>
Change-Id: I244f6ddd0a34e82ababd375646d3bb194602b5d5

src/plugins/quic/quic.c

index a0bacb6..3655f95 100644 (file)
@@ -2963,7 +2963,7 @@ quic_config_fn (vlib_main_t * vm, unformat_input_t * input)
 
   while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
     {
-      if (unformat (input, "fifo-size %U", unformat_memory_size, &tmp))
+      if (unformat (line_input, "fifo-size %U", unformat_memory_size, &tmp))
        {
          if (tmp >= 0x100000000ULL)
            {
@@ -2974,9 +2974,9 @@ quic_config_fn (vlib_main_t * vm, unformat_input_t * input)
            }
          qm->udp_fifo_size = tmp;
        }
-      else if (unformat (input, "conn-timeout %u", &i))
+      else if (unformat (line_input, "conn-timeout %u", &i))
        qm->connection_timeout = i;
-      else if (unformat (input, "fifo-prealloc %u", &i))
+      else if (unformat (line_input, "fifo-prealloc %u", &i))
        qm->udp_fifo_prealloc = i;
       else
        {