Changes in lib/proxy.c [58a1449:6f7ac17]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/proxy.c
r58a1449 r6f7ac17 530 530 struct PHB *phb; 531 531 532 if (!host || port <= 0|| !func || strlen(host) > 128) {532 if (!host || !port || (port == -1) || !func || strlen(host) > 128) { 533 533 return -1; 534 534 } … … 538 538 phb->data = data; 539 539 540 if ( proxytype == PROXY_NONE || !proxyhost[0] || proxyport <= 0)540 if ((proxytype == PROXY_NONE) || strlen(proxyhost) > 0 || !proxyport || (proxyport == -1)) 541 541 return proxy_connect_none(host, port, phb); 542 542 else if (proxytype == PROXY_HTTP)
Note: See TracChangeset
for help on using the changeset viewer.