read_tcp_data: remove superfluous NULL check

CID 56884 by Coverity. The pointer is already derefenced before this
point so it can't be NULL here anyway.
pull/62/head
Daniel Stenberg 8 years ago
parent 50b3138218
commit 7e0378a42a
  1. 3
      ares_process.c

@ -391,8 +391,7 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds,
*/
process_answer(channel, server->tcp_buffer, server->tcp_length,
i, 1, now);
if (server->tcp_buffer)
ares_free(server->tcp_buffer);
ares_free(server->tcp_buffer);
server->tcp_buffer = NULL;
server->tcp_lenbuf_pos = 0;
server->tcp_buffer_pos = 0;

Loading…
Cancel
Save