Fix a typical error

When call `foo(type *ret)`,always use `type` to receive the return value.
This commit is contained in:
Zhi Guan
2022-12-29 18:13:57 +08:00
parent eb06a2e200
commit 8ff829dbcd
2 changed files with 6 additions and 5 deletions

View File

@@ -855,6 +855,7 @@ int tls13_record_get_handshake_certificate_verify(const uint8_t *record,
int type;
const uint8_t *p;
size_t len ;
uint16_t alg;
if (tls_record_get_handshake(record, &type, &p, &len) != 1
|| type != TLS_handshake_certificate_verify) {
@@ -862,9 +863,9 @@ int tls13_record_get_handshake_certificate_verify(const uint8_t *record,
return -1;
}
*sign_algor = 0;
tls_uint16_from_bytes((uint16_t *)sign_algor, &p, &len);
tls_uint16_from_bytes(&alg, &p, &len);
tls_uint16array_from_bytes(sig, siglen, &p, &len);
*sign_algor = alg;
return 1;
}