]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Oops
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Mar 2007 23:36:49 +0000 (23:36 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Mar 2007 23:36:49 +0000 (23:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59283 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index f145f1e62db5120e04d04520bd678dcdfd57678c..bd6e8b8d68fbde7604b62b9943f225493ce7f9c6 100644 (file)
@@ -1262,7 +1262,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
                lseek(fd, 0, SEEK_SET);
                printf("Length is %d\n", fdlen);
                fdm = mmap(NULL, fdlen, PROT_READ | PROT_WRITE, MAP_SHARED,fd, 0);
-               if (fdm != MAP_FAILED) {
+               if (fdm == MAP_FAILED) {
                        ast_log(LOG_WARNING, "Memory map failed!\n");
                        goto yuck;
                }