From: Tilghman Lesher Date: Tue, 27 Mar 2007 23:36:49 +0000 (+0000) Subject: Oops X-Git-Tag: 1.2.18~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca58639653b444ad06600b5de9ae244d9d1addd;p=thirdparty%2Fasterisk.git Oops git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59283 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index f145f1e62d..bd6e8b8d68 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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; }