[asterisk-commits] file: branch 1.4 r48101 - /branches/1.4/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Nov 28 21:26:53 MST 2006


Author: file
Date: Tue Nov 28 22:26:53 2006
New Revision: 48101

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48101
Log:
Don't crash if the mailstream was not created.

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=48101&r1=48100&r2=48101
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Tue Nov 28 22:26:53 2006
@@ -4648,7 +4648,7 @@
 	if(option_debug > 2)
 		ast_log(LOG_DEBUG,"Before init_mailstream, user is %s\n",vmu->imapuser);
 	ret = init_mailstream(vms, box);
-	if (ret != 0) {
+	if (ret != 0 || !vms->mailstream) {
 		ast_log (LOG_ERROR,"Could not initialize mailstream\n");
 		return -1;
 	}



More information about the asterisk-commits mailing list