cifs: use memcpy for magic string in cifs signature generation BSRSPYL
...it's more efficient since we know the length. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
Родитель
ac423446d8
Коммит
b4dacbc282
|
@ -92,7 +92,7 @@ int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server,
|
|||
return rc;
|
||||
|
||||
if (!server->session_estab) {
|
||||
strncpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||
memcpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ int cifs_sign_smb2(struct kvec *iov, int n_vec, struct TCP_Server_Info *server,
|
|||
return rc;
|
||||
|
||||
if (!server->session_estab) {
|
||||
strncpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||
memcpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче