diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-05-05 23:15:06 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-05-09 21:44:33 +0200 |
commit | 0653c1561168ca43445bf027a3e57827890c06d0 (patch) | |
tree | c0e14aecbc2fb4660fd91d9ec23df834532c9f22 /lib/record.c | |
parent | cbfd03f6fc7820cb721615f44b1955e4d0b667c9 (diff) | |
download | gnutls-0653c1561168ca43445bf027a3e57827890c06d0.tar.gz |
several updates to address issues found by clang static analyzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/record.c')
-rw-r--r-- | lib/record.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/record.c b/lib/record.c index e0c6d3679f..be5f867141 100644 --- a/lib/record.c +++ b/lib/record.c @@ -1573,6 +1573,8 @@ void gnutls_packet_get(gnutls_packet_t packet, gnutls_datum_t *data, unsigned ch } } + assert(packet != NULL); + if (sequence) { memcpy(sequence, packet->record_sequence.i, 8); } |