[asterisk-commits] trunk r26758 - /trunk/enum.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 01:28:17 MST 2006


Author: markster
Date: Thu May 11 03:28:16 2006
New Revision: 26758

URL: http://svn.digium.com/view/asterisk?rev=26758&view=rev
Log:
Make sure we handle long information elements (bug #6654)

Modified:
    trunk/enum.c

Modified: trunk/enum.c
URL: http://svn.digium.com/view/asterisk/trunk/enum.c?rev=26758&r1=26757&r2=26758&view=diff
==============================================================================
--- trunk/enum.c (original)
+++ trunk/enum.c Thu May 11 03:28:16 2006
@@ -95,7 +95,7 @@
 } __attribute__ ((__packed__));
 
 /*! \brief Parse NAPTR record information elements */
-static int parse_ie(char *data, int maxdatalen, char *src, int srclen)
+static int parse_ie(unsigned char *data, int maxdatalen, unsigned char *src, int srclen)
 {
 	int len, olen;
 
@@ -113,7 +113,7 @@
 }
 
 /*! \brief Parse DNS NAPTR record used in ENUM ---*/
-static int parse_naptr(char *dst, int dstsize, char *tech, int techsize, char *answer, int len, char *naptrinput)
+static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize, unsigned char *answer, int len, unsigned char *naptrinput)
 {
 
 	char tech_return[80];



More information about the asterisk-commits mailing list