]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Small oops. Clear the flags which have been checked.
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 9 Aug 2009 15:41:01 +0000 (15:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 9 Aug 2009 15:41:01 +0000 (15:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@211274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/astfd.c

index 9880c6b7c1c63263d2518df066bbca1ec2210f38..ca852133e0105d16f0ece3f8e3a28bda9e95c586 100644 (file)
@@ -98,7 +98,7 @@ int __ast_fdleak_open(const char *file, int line, const char *func, const char *
                                flags & O_RDONLY ? "|O_RDONLY" : "",
                                flags & O_WRONLY ? "|O_WRONLY" : "",
                                "");
-                       flags |= ~(O_CREAT | O_APPEND | O_EXCL | O_NONBLOCK | O_TRUNC | O_RDWR | O_RDONLY | O_WRONLY);
+                       flags &= ~(O_CREAT | O_APPEND | O_EXCL | O_NONBLOCK | O_TRUNC | O_RDWR | O_RDONLY | O_WRONLY);
                        if (flags) {
                                STORE_COMMON(res, "open", "\"%s\",%s|%d,%04o", path, sflags, flags, mode);
                        } else {