diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2021-05-15 12:04:39 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-06-28 23:49:25 +0200 |
commit | d71a95e7ffab880bdc81680b67368088f2e20d47 (patch) | |
tree | b7af5175fafb8ff9dffb33456ed1f79eb4f1b24d /net/ceph/auth_none.c | |
parent | 4364c6938dcbb78d9c5b6e4c94b5b81e939383dc (diff) | |
download | linux-d71a95e7ffab880bdc81680b67368088f2e20d47.tar.gz linux-d71a95e7ffab880bdc81680b67368088f2e20d47.tar.bz2 linux-d71a95e7ffab880bdc81680b67368088f2e20d47.zip |
libceph: kill ceph_none_authorizer::reply_buf
We never receive authorizer replies with cephx disabled, so it is
bogus. Also, it still uses the old zero-length array style.
Reported-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph/auth_none.c')
-rw-r--r-- | net/ceph/auth_none.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/auth_none.c b/net/ceph/auth_none.c index 097e9f8d87a7..77b5519bc45f 100644 --- a/net/ceph/auth_none.c +++ b/net/ceph/auth_none.c @@ -112,8 +112,8 @@ static int ceph_auth_none_create_authorizer( auth->authorizer = (struct ceph_authorizer *) au; auth->authorizer_buf = au->buf; auth->authorizer_buf_len = au->buf_len; - auth->authorizer_reply_buf = au->reply_buf; - auth->authorizer_reply_buf_len = sizeof (au->reply_buf); + auth->authorizer_reply_buf = NULL; + auth->authorizer_reply_buf_len = 0; return 0; } |