~ubuntu-branches/ubuntu/quantal/libssh/quantal

« back to all changes in this revision

Viewing changes to libssh/socket.c

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2010-10-20 20:45:48 UTC
  • mfrom: (4.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20101020204548-vg0mfn5dnd9zpo2b
Tags: 0.4.5-2
* Add d/p/0001-socket.c-Fixed-setting-max_fd-which-breaks-ssh_selec.patch:
  Fix slow response in Remmina SSH (Closes: #599687, LP: #663777)
* debian/control: Bump Standards-Version to 3.9.1 (no futher changes)
* debian/copyright: Update copyright file to please lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
  if (s->fd == SSH_INVALID_SOCKET)
258
258
    return;
259
259
  FD_SET(s->fd,set);
260
 
  if (s->fd >= 0 && s->fd != SSH_INVALID_SOCKET) {
 
260
 
 
261
  if (s->fd >= 0 &&
 
262
      s->fd >= *max_fd &&
 
263
      s->fd != SSH_INVALID_SOCKET) {
261
264
    *max_fd = s->fd + 1;
262
265
  }
263
266
}