]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
regression from 29f66f99
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 22:21:05 +0000 (16:21 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 22:21:14 +0000 (16:21 -0600)
src/switch_utils.c

index 25f52161776ef5e4b7ec1b3a368bf701425945a8..4edd9c8a6833ffe67ed1e10fe04ad0f39f009106 100644 (file)
@@ -774,10 +774,10 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
 
   end:
 
-       if (fd < 0) {
+       if (fd > -1) {
                close(fd);
        }
-       if (ifd < 0) {
+       if (ifd > -1) {
                close(ifd);
        }