Changes in protocols/jabber/sasl.c [af97b23:ef5c185]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/sasl.c
raf97b23 ref5c185 21 21 * * 22 22 \***************************************************************************/ 23 24 #include <ctype.h>25 23 26 24 #include "jabber.h" … … 109 107 } 110 108 111 /* Non-static function, but not mentioned in jabber.h because it's for internal 112 use, just that the unittest should be able to reach it... */ 113 char *sasl_get_part( char *data, char *field ) 109 static char *sasl_get_part( char *data, char *field ) 114 110 { 115 111 int i, len; 116 112 117 113 len = strlen( field ); 118 119 while( isspace( *data ) || *data == ',' )120 data ++;121 114 122 115 if( g_strncasecmp( data, field, len ) == 0 && data[len] == '=' ) … … 136 129 } 137 130 138 /* If we got a comma, we got a new field. Check it, 139 find the next key after it. */ 140 if( data[i] == ',' ) 131 /* If we got a comma, we got a new field. Check it. */ 132 if( data[i] == ',' && 133 g_strncasecmp( data + i + 1, field, len ) == 0 && 134 data[i+len+1] == '=' ) 141 135 { 142 while( isspace( data[i] ) || data[i] == ',' ) 143 i ++; 144 145 if( g_strncasecmp( data + i, field, len ) == 0 && 146 data[i+len] == '=' ) 147 { 148 i += len + 1; 149 break; 150 } 136 i += len + 2; 137 break; 151 138 } 152 139 }
Note: See TracChangeset
for help on using the changeset viewer.