[asterisk-commits] branch 1.2 r23988 - /branches/1.2/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 1 12:34:30 MST 2006


Author: bweschke
Date: Mon May  1 14:34:29 2006
New Revision: 23988

URL: http://svn.digium.com/view/asterisk?rev=23988&view=rev
Log:
 Correct a condition from the prior patch that could happen in rare circumstances and cause a core dump. Thanks Qwell! 


Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=23988&r1=23987&r2=23988&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Mon May  1 14:34:29 2006
@@ -2599,7 +2599,7 @@
 				if (txt && EXISTS(dir,msgnum,fn,chan->language)) {
 					fclose(txt);
 					rename(tmptxtfile, txtfile);
-				} else if (!EXISTS(dir,msgnum,fn,chan->language)) {
+				} else if (txt && !EXISTS(dir,msgnum,fn,chan->language)) {
 					if (option_debug) 
 						ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
 					fclose(txt);



More information about the asterisk-commits mailing list