Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

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