diff options
author | Shyam Saini <mayhs11saini@gmail.com> | 2017-06-23 17:35:55 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-26 18:53:40 +0200 |
commit | c96dd58bcfc89d480a52f5ac3986034317a9771a (patch) | |
tree | 08857b9613ef2de0bda05cbb50178805c1c69c69 /include/erec.h | |
parent | d129f83435adf65d30de28d50de0792b731f87a6 (diff) |
tests: shell: Add test for incomplete set add set command
Before c6cd7c22548a ("src: fix crash when inputting an incomplete set
add command") commit, if we run nft with incomplete "add set" command it
caused segmentation fault and exit with error code 139 and further it
didn't throw any error message.
For example:
$ sudo nft add set t s
But after the aforementioned commit it throws syntax error message and
exits with return value 1.
For example:
$ sudo nft add set t s
<cmdline>:1:12-12: Error: syntax error, unexpected newline, expecting '{'
add set t s
^
This commit tests changes made in such commit.
Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/erec.h')
0 files changed, 0 insertions, 0 deletions