- Timestamp:
- 2008-03-24T11:01:02Z (17 years ago)
- Branches:
- master
- Children:
- 66c51bbf, bfe7caa
- Parents:
- fcd5003
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/proxy.c
rfcd5003 r58a1449 530 530 struct PHB *phb; 531 531 532 if (!host || !port || (port == -1)|| !func || strlen(host) > 128) {532 if (!host || port <= 0 || !func || strlen(host) > 128) { 533 533 return -1; 534 534 } … … 538 538 phb->data = data; 539 539 540 if ( (proxytype == PROXY_NONE) || strlen(proxyhost) > 0 || !proxyport || (proxyport == -1))540 if (proxytype == PROXY_NONE || !proxyhost[0] || proxyport <= 0) 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.