[PATCH lnf-conntrack] conntrack: dccp print function should use dccp state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found while reading code, compile tested only.

Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 src/conntrack/snprintf_default.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conntrack/snprintf_default.c b/src/conntrack/snprintf_default.c
index 06466b115870..e48f06e5db59 100644
--- a/src/conntrack/snprintf_default.c
+++ b/src/conntrack/snprintf_default.c
@@ -62,8 +62,8 @@ static int __snprintf_protoinfo_dccp(char *buf,
 {
 	return snprintf(buf, len, "%s ",
 			ct->protoinfo.dccp.state < DCCP_CONNTRACK_MAX ?
-			sctp_states[ct->protoinfo.dccp.state] :
-			sctp_states[DCCP_CONNTRACK_NONE]);
+			dccp_states[ct->protoinfo.dccp.state] :
+			dccp_states[DCCP_CONNTRACK_NONE]);
 }
 
 static int __snprintf_address_ipv4(char *buf,
-- 
2.26.2




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux