diff options
Diffstat (limited to 'vlib/vlib/threads_cli.c')
-rw-r--r-- | vlib/vlib/threads_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vlib/vlib/threads_cli.c b/vlib/vlib/threads_cli.c index 919baac5640..9ab4edcd357 100644 --- a/vlib/vlib/threads_cli.c +++ b/vlib/vlib/threads_cli.c @@ -321,8 +321,8 @@ test_frame_queue_nelts (vlib_main_t * vm, unformat_input_t * input, u32 fqix; u32 nelts = 0; - unformat (input, "%d", &nelts); - if ((nelts != 4) && (nelts != 8) && (nelts != 16) && (nelts != 32)) + if ((unformat (input, "%d", &nelts) != 1) || + ((nelts != 4) && (nelts != 8) && (nelts != 16) && (nelts != 32))) { return clib_error_return (0, "expecting 4,8,16,32"); } |