diff mbox

[2/4,V2,libnftnl] tests: Fix wrong expression creation

Message ID 20160812201722.10134-2-carlosfg@riseup.net
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Carlos Falgueras García Aug. 12, 2016, 8:17 p.m. UTC
Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
---
 tests/nft-expr_masq-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pablo Neira Ayuso Aug. 13, 2016, 10:25 a.m. UTC | #1
Applied, thanks.

On Fri, Aug 12, 2016 at 10:17:20PM +0200, Carlos Falgueras García wrote:
> Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
> ---
>  tests/nft-expr_masq-test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/nft-expr_masq-test.c b/tests/nft-expr_masq-test.c
> index f0302e2..3f9903d 100644
> --- a/tests/nft-expr_masq-test.c
> +++ b/tests/nft-expr_masq-test.c
> @@ -52,7 +52,7 @@ int main(int argc, char *argv[])
>  	b = nftnl_rule_alloc();
>  	if (a == NULL || b == NULL)
>  		print_err("OOM");
> -	ex = nftnl_expr_alloc("nat");
> +	ex = nftnl_expr_alloc("masq");
>  	if (ex == NULL)
>  		print_err("OOM");
>  
> -- 
> 2.8.3
> 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/nft-expr_masq-test.c b/tests/nft-expr_masq-test.c
index f0302e2..3f9903d 100644
--- a/tests/nft-expr_masq-test.c
+++ b/tests/nft-expr_masq-test.c
@@ -52,7 +52,7 @@  int main(int argc, char *argv[])
 	b = nftnl_rule_alloc();
 	if (a == NULL || b == NULL)
 		print_err("OOM");
-	ex = nftnl_expr_alloc("nat");
+	ex = nftnl_expr_alloc("masq");
 	if (ex == NULL)
 		print_err("OOM");