Skip to contentSkip to conversation

conntrack: dccp print function should use dccp state

PATCH In review Florian Westphal 2 participants 2 messages Aug 13, 2020 – Aug 14, 2020 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 conntrack: dccp print function should use dccp state

Found while reading code, compile tested only.

---
 src/conntrack/snprintf_default.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/conntrack/snprintf_default.c +2 -2
index 06466b115870..e48f06e5db59 100644
@@ -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,
Signature · 1 line
2.26.2