Mercurial > ~mikael > mcabber > hg
comparison mcabber/libjabber/jconn.c @ 1028:8569e3535305
[BP-b33ca4e1c37d] Fix potential libjabber issue
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 16 Nov 2006 19:30:12 +0100 |
parents | 40175f3dcef7 |
children | 3fcb7c8af2ba |
comparison
equal
deleted
inserted
replaced
1027:6d68a65b5ec6 | 1028:8569e3535305 |
---|---|
351 int r; | 351 int r; |
352 | 352 |
353 if (!j || j->state == JCONN_STATE_OFF) | 353 if (!j || j->state == JCONN_STATE_OFF) |
354 return; | 354 return; |
355 | 355 |
356 if (j->fd == -1) { | |
357 STATE_EVT(JCONN_STATE_OFF); | |
358 return; | |
359 } | |
360 | |
356 FD_ZERO(&fds); | 361 FD_ZERO(&fds); |
357 FD_SET(j->fd, &fds); | 362 FD_SET(j->fd, &fds); |
358 | 363 |
359 if(timeout <= 0) { | 364 if(timeout <= 0) { |
360 r = select(j->fd + 1, &fds, NULL, NULL, NULL); | 365 r = select(j->fd + 1, &fds, NULL, NULL, NULL); |