diff options
Diffstat (limited to 'scan_urlencoded_query.c')
-rw-r--r-- | scan_urlencoded_query.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c index c3acefc..4a8ff63 100644 --- a/scan_urlencoded_query.c +++ b/scan_urlencoded_query.c | |||
@@ -140,21 +140,4 @@ ssize_t scan_fixed_int( char *data, size_t len, int *tmp ) { | |||
140 | return len; | 140 | return len; |
141 | } | 141 | } |
142 | 142 | ||
143 | ssize_t scan_fixed_ip( char *data, size_t len, unsigned char ip[4] ) { | ||
144 | int u, i; | ||
145 | |||
146 | for( i=0; i<4; ++i ) { | ||
147 | ssize_t j = scan_fixed_int( data, len, &u ); | ||
148 | if( j == (ssize_t)len ) return len; | ||
149 | ip[i] = u; | ||
150 | data += len - j; | ||
151 | len = j; | ||
152 | if ( i<3 ) { | ||
153 | if( !len || *data != '.') return -1; | ||
154 | --len; ++data; | ||
155 | } | ||
156 | } | ||
157 | return len; | ||
158 | } | ||
159 | |||
160 | const char *g_version_scan_urlencoded_query_c = "$Source$: $Revision$\n"; | 143 | const char *g_version_scan_urlencoded_query_c = "$Source$: $Revision$\n"; |