Fix/improve dereference-before-null-checks.

This commit is contained in:
Jon Siwek 2013-09-13 16:41:41 -05:00
parent 3d81432a1e
commit 735d2c402a
8 changed files with 19 additions and 30 deletions

View file

@ -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;