]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 59283 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Mar 2007 23:37:31 +0000 (23:37 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Mar 2007 23:37:31 +0000 (23:37 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r59283 | tilghman | 2007-03-27 18:36:49 -0500 (Tue, 27 Mar 2007) | 2 lines

Oops

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59284 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index b5bd8987f3a223e808b4fe5d692b01061f1d0649..f3dfb139e2adbf461f332c8f526829a7b7b8413e 100644 (file)
@@ -1400,7 +1400,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
                lseek(fd, 0, SEEK_SET);
                printf("Length is %zd\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");
                        ast_odbc_release_obj(obj);
                        goto yuck;