Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at rawlog.c:149

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

server_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/util/rawlog.c)expand/collapse
Show more  
 132  static void server_input(struct rawlog_proxy *proxy)
 133  {
 134          unsigned char buf[OUTBUF_THRESHOLD];
 135          ssize_t ret;
 136   
 137          if (o_stream_get_buffer_used_size(proxy->client_output) >
 138              OUTBUF_THRESHOLD) {
 139                  /* client's output buffer is already quite full.
 140                     don't send more until we're below threshold. */
 141                  io_remove(&proxy->server_io);
 142                  return;
 143          }
 144   
 145          ret = net_receive(proxy->server_fd, buf, sizeof(buf));
 146          if (ret > 0) {
 147                  (void)o_stream_send(proxy->client_output, buf, ret);
 148                  proxy_write_out(proxy, buf, ret);
 149          } else if (ret <= 0)
 150                  rawlog_proxy_destroy(proxy);
 151  }
Show more  




Change Warning 8029.24651 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: