"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pactester.c" between
pacparser-1.3.8.tar.gz and pacparser-1.3.9.tar.gz

About: pacparser is a library to parse Proxy Auto-Config (PAC) files (incl. a pactester).

pactester.c  (pacparser-1.3.8):pactester.c  (pacparser-1.3.9)
skipping to change at line 198 skipping to change at line 198
else { else {
if (!pacparser_parse_pac_file(pacfile)) { if (!pacparser_parse_pac_file(pacfile)) {
fprintf(stderr, "pactester.c: Could not parse the pac file: %s\n", fprintf(stderr, "pactester.c: Could not parse the pac file: %s\n",
pacfile); pacfile);
pacparser_cleanup(); pacparser_cleanup();
return 1; return 1;
} }
} }
if (client_ip) if (client_ip)
pacparser_setmyip(client_ip); if (!pacparser_setmyip(client_ip)) {
fprintf(stderr, "pactester.c: Error setting client IP\n");
pacparser_cleanup();
return 1;
}
char *proxy; char *proxy;
if (url) { if (url) {
// If the host was not explicitly given, get it from the URL. // If the host was not explicitly given, get it from the URL.
// If that fails, return with error (the get_host_from_url() // If that fails, return with error (the get_host_from_url()
// function will print a proper error message in that case). // function will print a proper error message in that case).
host = host ? host: get_host_from_url(url); host = host ? host: get_host_from_url(url);
if (!host) { if (!host) {
return 1; return 1;
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)