[asterisk-commits] dvossel: branch 1.6.2 r232270 - in /branches/1.6.2: ./ funcs/func_groupcount.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 2 09:43:32 CST 2009


Author: dvossel
Date: Wed Dec  2 09:43:27 2009
New Revision: 232270

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

................
  r232269 | dvossel | 2009-12-02 09:42:54 -0600 (Wed, 02 Dec 2009) | 15 lines
  
  Merged revisions 232268 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02 Dec 2009) | 9 lines
    
    fixes segfault in func_groupcount
    
    closes issue #16337)
    Reported by: Parantido
    Patches:
          issue_16337.diff uploaded by dvossel (license 671)
    	  Tested by: Parantido, dvossel
  ........
................

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/funcs/func_groupcount.c

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

Modified: branches/1.6.2/funcs/func_groupcount.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/funcs/func_groupcount.c?view=diff&rev=232270&r1=232269&r2=232270
==============================================================================
--- branches/1.6.2/funcs/func_groupcount.c (original)
+++ branches/1.6.2/funcs/func_groupcount.c Wed Dec  2 09:43:27 2009
@@ -193,6 +193,10 @@
 				char *data, const char *value)
 {
 	char grpcat[256];
+
+	if (!value) {
+		return -1;
+	}
 
 	if (!ast_strlen_zero(data)) {
 		snprintf(grpcat, sizeof(grpcat), "%s@%s", value, data);




More information about the asterisk-commits mailing list