mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
ac423446d8
commit
b4dacbc282
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server,
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
if (!server->session_estab) {
|
if (!server->session_estab) {
|
||||||
strncpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
memcpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ int cifs_sign_smb2(struct kvec *iov, int n_vec, struct TCP_Server_Info *server,
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
if (!server->session_estab) {
|
if (!server->session_estab) {
|
||||||
strncpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
memcpy(cifs_pdu->Signature.SecuritySignature, "BSRSPYL", 8);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue