[asterisk-commits] mmichelson: branch 1.6.1 r152648 - in /branches/1.6.1: ./ apps/app_directory.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Oct 29 15:55:23 CDT 2008
    
    
  
Author: mmichelson
Date: Wed Oct 29 15:55:22 2008
New Revision: 152648
URL: http://svn.digium.com/view/asterisk?view=rev&rev=152648
Log:
Merged revisions 152646 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk
........
r152646 | mmichelson | 2008-10-29 15:53:53 -0500 (Wed, 29 Oct 2008) | 9 lines
If there was no named defined in a voicemail.conf mailbox
entry, then app_directory would crash when attempting to
read that entry from the file. We now check for the NULL
or empty string properly so that there will be no crash.
(closes issue #13804)
Reported by: bluecrow76
........
Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/apps/app_directory.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/apps/app_directory.c?view=diff&rev=152648&r1=152647&r2=152648
==============================================================================
--- branches/1.6.1/apps/app_directory.c (original)
+++ branches/1.6.1/apps/app_directory.c Wed Oct 29 15:55:22 2008
@@ -131,6 +131,10 @@
 {
 	char digit;
 
+	if (ast_strlen_zero(text)) {
+		return -1;
+	}
+
 	while (*template) {
 		digit = toupper(*text++);
 		switch (digit) {
    
    
More information about the asterisk-commits
mailing list