summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-10-09 18:34:22 +0200
committerTim Rühsen <tim.ruehsen@gmx.de>2019-10-13 12:27:19 +0200
commitc53e78bc547a7ff5904ff10c622be372ac2d3c38 (patch)
treefeb1d4e9accc4ff65b90c6663183dd984a351844 /lib
parent2a66896e291f3ab74ac778e4e91aa95fee282def (diff)
downloadgnutls-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.c2
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",