diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-10-09 18:34:22 +0200 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-10-13 12:27:19 +0200 |
commit | c53e78bc547a7ff5904ff10c622be372ac2d3c38 (patch) | |
tree | feb1d4e9accc4ff65b90c6663183dd984a351844 /lib | |
parent | 2a66896e291f3ab74ac778e4e91aa95fee282def (diff) | |
download | gnutls-c53e78bc547a7ff5904ff10c622be372ac2d3c38.tar.gz |
lib/record.c: Use assignment instead of memcpy()
Fixes Coverity issue 1454647
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/record.c b/lib/record.c index cef2ab2244..033011b6b2 100644 --- a/lib/record.c +++ b/lib/record.c @@ -1507,7 +1507,7 @@ _gnutls_recv_in_buffers(gnutls_session_t session, content_type_t type, /* store the last valid sequence number. We don't use that internally but * callers of gnutls_record_get_state() could take advantage of it. */ - memcpy(&record_state->sequence_number, packet_sequence, 8); + record_state->sequence_number = record.sequence; } else { _gnutls_record_log ("REC[%p]: Decrypted Packet[%u] %s(%d) with length: %d\n", |