diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-10-25 00:58:20 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-02-29 00:18:18 +0300 |
commit | d6f4de70f73a106986ee315d7d512539f2f3303a (patch) | |
tree | a9288e032c107cbefdc1336ff5ce8a5af34139a6 /include | |
parent | 3f7edeac0bbb301a07d7ea2abd28727aaa7fdab0 (diff) | |
download | linux-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')
0 files changed, 0 insertions, 0 deletions