From: Anthony Minessale Date: Thu, 23 Feb 2012 22:21:05 +0000 (-0600) Subject: regression from 29f66f99 X-Git-Tag: v1.2-rc1~19^2^2~68^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca8536558305de888178704131fe5c3ed9e623c;p=thirdparty%2Ffreeswitch.git regression from 29f66f99 --- diff --git a/src/switch_utils.c b/src/switch_utils.c index 25f5216177..4edd9c8a68 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -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); }