? strace.log Index: rtp.c =================================================================== RCS file: /var/lib/cvs/asterisk/rtp.c,v retrieving revision 1.3 diff -u -r1.3 rtp.c --- rtp.c 6 Apr 2005 16:55:04 -0000 1.3 +++ rtp.c 4 Jul 2005 11:33:38 -0000 @@ -796,7 +796,7 @@ int s; long flags; s = socket(AF_INET, SOCK_DGRAM, 0); - if (s > -1) { + if (s != -1) { flags = fcntl(s, F_GETFL); fcntl(s, F_SETFL, flags | O_NONBLOCK); #ifdef SO_NO_CHECK @@ -954,7 +954,7 @@ ast_smoother_free(rtp->smoother); if (rtp->ioid) ast_io_remove(rtp->io, rtp->ioid); - if (rtp->s > -1) + if (rtp->s != -1) close(rtp->s); if (rtp->rtcp) { close(rtp->rtcp->s);