[svn-commits] mmichelson: trunk r152646 - /trunk/apps/app_directory.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Oct 29 15:53:54 CDT 2008
Author: mmichelson
Date: Wed Oct 29 15:53:53 2008
New Revision: 152646
URL: http://svn.digium.com/view/asterisk?view=rev&rev=152646
Log:
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:
trunk/apps/app_directory.c
Modified: trunk/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_directory.c?view=diff&rev=152646&r1=152645&r2=152646
==============================================================================
--- trunk/apps/app_directory.c (original)
+++ trunk/apps/app_directory.c Wed Oct 29 15:53:53 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 svn-commits
mailing list