conntrack: dccp print function should use dccp state
Florian Westphal
maintainerPATCH 1/1 conntrack: dccp print function should use dccp state
Found while reading code, compile tested only.
Signed-off-by Florian Westphal <[email protected]>
--- src/conntrack/snprintf_default.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/conntrack/snprintf_default.c +2 -2
@@ -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
Quoted 3 lines · Florian Westphal
Found while reading code, compile tested only.
Signed-off-by Florian Westphal <[email protected]>
Reviewed-by Pablo Neira Ayuso <[email protected]>
Thanks!