mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Fix/improve dereference-before-null-checks.
This commit is contained in:
parent
3d81432a1e
commit
735d2c402a
8 changed files with 19 additions and 30 deletions
|
@ -1074,9 +1074,8 @@ bool ChunkedIOSSL::Read(Chunk** chunk, bool mayblock)
|
|||
read_state = LEN;
|
||||
|
||||
#ifdef DEBUG
|
||||
if ( *chunk )
|
||||
DBG_LOG(DBG_CHUNKEDIO, "ssl read of size %d [%s]",
|
||||
(*chunk)->len, fmt_bytes((*chunk)->data, 20));
|
||||
DBG_LOG(DBG_CHUNKEDIO, "ssl read of size %d [%s]",
|
||||
(*chunk)->len, fmt_bytes((*chunk)->data, 20));
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue