Changeset 58a1449 for lib


Ignore:
Timestamp:
2008-03-24T11:01:02Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
66c51bbf, bfe7caa
Parents:
fcd5003
Message:

Fixed a broken check in lib/proxy.c, this restores proxy support. Thanks
to Miles Bader for reporting this in the Debian BTS. Apparently not many
people use this functionality, it was broken in bzr for more than a year
already...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    rfcd5003 r58a1449  
    530530        struct PHB *phb;
    531531       
    532         if (!host || !port || (port == -1) || !func || strlen(host) > 128) {
     532        if (!host || port <= 0 || !func || strlen(host) > 128) {
    533533                return -1;
    534534        }
     
    538538        phb->data = data;
    539539       
    540         if ((proxytype == PROXY_NONE) || strlen(proxyhost) > 0 || !proxyport || (proxyport == -1))
     540        if (proxytype == PROXY_NONE || !proxyhost[0] || proxyport <= 0)
    541541                return proxy_connect_none(host, port, phb);
    542542        else if (proxytype == PROXY_HTTP)
Note: See TracChangeset for help on using the changeset viewer.