Commit 7cadd63d authored by Steve French's avatar Steve French

fix memory allocation of rfc1002 sess init struct

parent ac51bef8
......@@ -940,7 +940,7 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket)
sessinit is sent but no second negprot */
struct rfc1002_session_packet * ses_init_buf;
struct smb_hdr * smb_buf;
ses_init_buf = cifs_kcalloc(36, GFP_KERNEL);
ses_init_buf = cifs_kcalloc(sizeof(struct rfc1002_session_packet), GFP_KERNEL);
if(ses_init_buf) {
ses_init_buf->trailer.session_req.called_len = 32;
rfc1002mangle(ses_init_buf->trailer.session_req.called_name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment