[asterisk-commits] tilghman: branch 1.6.2 r219989 - in /branches/1.6.2: ./ apps/app_directory.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 24 02:45:38 CDT 2009


Author: tilghman
Date: Thu Sep 24 02:45:33 2009
New Revision: 219989

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=219989
Log:
Merged revisions 219987 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r219987 | tilghman | 2009-09-24 02:39:44 -0500 (Thu, 24 Sep 2009) | 8 lines
  
  Fix two possible crashes, one only in 1.6.1 and one in 1.6.1 forward.
  (closes issue #15739)
   Reported by: DLNoah, jeffg
   Patches: 
         20090914__issue15739.diff.txt uploaded by tilghman (license 14)
         20090922__issue15739.diff.txt uploaded by tilghman (license 14)
   Tested by: DLNoah, jeffg
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_directory.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/apps/app_directory.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_directory.c?view=diff&rev=219989&r1=219988&r2=219989
==============================================================================
--- branches/1.6.2/apps/app_directory.c (original)
+++ branches/1.6.2/apps/app_directory.c Thu Sep 24 02:45:33 2009
@@ -525,6 +525,11 @@
 		strsep(&bufptr, ",");
 		pos = strsep(&bufptr, ",");
 
+		/* No name to compare against */
+		if (ast_strlen_zero(pos)) {
+			continue;
+		}
+
 		res = 0;
 		if (ast_test_flag(&flags, OPT_LISTBYLASTNAME)) {
 			res = check_match(&item, context, pos, v->name, ext, 0 /* use_first_name */);




More information about the asterisk-commits mailing list