Skip to content

Commit

Permalink
ksmbd: Replace one-element arrays with flexible-array members in smb2…
Browse files Browse the repository at this point in the history
…_sess_setup_rsp

Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Oct 13, 2024
1 parent 4262ae3 commit c1d26c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smb2pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ struct smb2_sess_setup_rsp {
__le16 SessionFlags;
__le16 SecurityBufferOffset;
__le16 SecurityBufferLength;
__u8 Buffer[1]; /* variable length GSS security buffer */
__u8 Buffer[]; /* variable length GSS security buffer */
} __packed;

struct smb2_logoff_req {
Expand Down

0 comments on commit c1d26c6

Please sign in to comment.