summaryrefslogtreecommitdiff
path: root/include/trace/events/sunrpc.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-10-25 00:58:20 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2024-02-29 00:18:18 +0300
commitd6f4de70f73a106986ee315d7d512539f2f3303a (patch)
treea9288e032c107cbefdc1336ff5ce8a5af34139a6 /include/trace/events/sunrpc.h
parent3f7edeac0bbb301a07d7ea2abd28727aaa7fdab0 (diff)
downloadlinux-d6f4de70f73a106986ee315d7d512539f2f3303a.tar.xz
net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
The intent is to check if the strings' are truncated or not. So, >= should be used instead of >, because strlcat() and snprintf() return the length of the output, excluding the trailing NULL. Fixes: a02d69261134 ("SUNRPC: Provide functions for managing universal addresses") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/trace/events/sunrpc.h')
0 files changed, 0 insertions, 0 deletions