Commit d71a95e7 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 4364c693
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ struct ceph_none_authorizer {
	struct ceph_authorizer base;
	char buf[128];
	int buf_len;
	char reply_buf[0];
};

struct ceph_auth_none_info {