libIP2Proxy/IP2Proxy.c
// fill the record fields with error message
fill the record fields with error message
fill the record fields with error message
static IP2ProxyRecord *IP2Proxy_bad_record(const char *message)
{
	IP2ProxyRecord *record = IP2Proxy_new_record();
	record->country_short = strdup(message);
	record->country_long = strdup(message);
	record->region = strdup(message);
	record->city = strdup(message);
	record->isp = strdup(message);
	record->is_proxy = "-1";
	record->proxy_type = strdup(message);
	record->domain = strdup(message);
	record->usage_type = strdup(message);
	record->asn = strdup(message);
	record->as_ = strdup(message);
	record->last_seen = strdup(message);
	record->threat = strdup(message);
	record->provider = strdup(message);
	return record;
}
static IP2ProxyRecord * IP2Proxy_bad_record ( const char * message ) { IP2ProxyRecord * record = IP2Proxy_new_record ( ) ; record -> country_short = strdup ( message ) ; record -> country_long = strdup ( message ) ; record -> region = strdup ( message ) ; record -> city = strdup ( message ) ; record -> isp = strdup ( message ) ; record -> is_proxy = " " ; record -> proxy_type = strdup ( message ) ; record -> domain = strdup ( message ) ; record -> usage_type = strdup ( message ) ; record -> asn = strdup ( message ) ; record -> as_ = strdup ( message ) ; record -> last_seen = strdup ( message ) ; record -> threat = strdup ( message ) ; record -> provider = strdup ( message ) ; return record ; }
fill the record fields with error message
fill the record fields with error message