Changeset 2794
- Timestamp:
- Jun 24, 2009 4:00:36 PM (15 years ago)
- Location:
- pjproject/branches/1.0
- Files:
-
- 1 deleted
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0
- Property svn:mergeinfo changed
/pjproject/trunk merged: 2726,2765
- Property svn:mergeinfo changed
-
pjproject/branches/1.0/pjmedia/src/pjmedia/transport_srtp.c
r2533 r2794 23 23 #include <pjlib-util/base64.h> 24 24 #include <pj/assert.h> 25 #include <pj/ctype.h> 25 26 #include <pj/lock.h> 26 27 #include <pj/log.h> … … 980 981 pj_str_t input; 981 982 char *token; 983 int token_len; 982 984 pj_str_t tmp; 983 985 pj_status_t status; … … 993 995 return PJMEDIA_SDP_EINATTR; 994 996 } 997 token_len = pj_ansi_strlen(token); 998 999 /* Tag must not use leading zeroes. */ 1000 if (token_len > 1 && *token == '0') 1001 return PJMEDIA_SDP_EINATTR; 1002 1003 /* Tag must be decimal, i.e: contains only digit '0'-'9'. */ 1004 for (itmp = 0; itmp < token_len; ++itmp) 1005 if (!pj_isdigit(token[itmp])) 1006 return PJMEDIA_SDP_EINATTR; 1007 1008 /* Get tag value. */ 995 1009 *tag = atoi(token); 996 if (*tag == 0)997 return PJMEDIA_SDP_EINATTR;998 1010 999 1011 /* Crypto-suite */
Note: See TracChangeset
for help on using the changeset viewer.