diff mbox

conntrack: Fix wrong --src, or --dst option shown.

Message ID 1459762864-10326-1-git-send-email-mart.frauenlob@chello.at
State Not Applicable
Delegated to: Pablo Neira
Headers show

Commit Message

Mart Frauenlob April 4, 2016, 9:41 a.m. UTC
If running into PARAMETER_PROBLEM on usage of --mask-src, or --mask-dst
 without using the needed --orig-src, or --orig-dst option,
 the wrong options were offered in the error message.

Signed-off-by: Mart Frauenlob <mart.frauenlob@chello.at>
---
 src/conntrack.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/src/conntrack.c b/src/conntrack.c
index 2367459..d40f23f 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -2091,14 +2091,14 @@  nfct_filter_init(const int family)
 	if (options & CT_OPT_MASK_SRC) {
 		if (!(options & CT_OPT_ORIG_SRC))
 			exit_error(PARAMETER_PROBLEM,
-			           "Can't use --mask-src without --src");
+			           "Can't use --mask-src without --orig-src");
 		nfct_network_attr_prepare(family, DIR_SRC);
 	}
 
 	if (options & CT_OPT_MASK_DST) {
 		if (!(options & CT_OPT_ORIG_DST))
 			exit_error(PARAMETER_PROBLEM,
-			           "Can't use --mask-dst without --dst");
+			           "Can't use --mask-dst without --orig-dst");
 		nfct_network_attr_prepare(family, DIR_DST);
 	}
 }