[svn-commits] trunk r10064 - /trunk/enum.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Feb 14 15:18:13 MST 2006


Author: kpfleming
Date: Tue Feb 14 16:18:13 2006
New Revision: 10064

URL: http://svn.digium.com/view/asterisk?rev=10064&view=rev
Log:
ensure that ENUM count requests that are invalid return zero, not blank (issue #6371)

Modified:
    trunk/enum.c

Modified: trunk/enum.c
URL: http://svn.digium.com/view/asterisk/trunk/enum.c?rev=10064&r1=10063&r2=10064&view=diff
==============================================================================
--- trunk/enum.c (original)
+++ trunk/enum.c Tue Feb 14 16:18:13 2006
@@ -1,7 +1,7 @@
 /*
  * Asterisk -- An open source telephony toolkit.
  *
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2006, Digium, Inc.
  *
  * Mark Spencer <markster at digium.com>
  *
@@ -491,6 +491,7 @@
 	}
 	if (ret < 0) {
 		ast_log(LOG_DEBUG, "No such number found: %s (%s)\n", tmp, strerror(errno));
+		strcpy(dst, "0");
 		ret = 0;
 	}
 



More information about the svn-commits mailing list