Browse Source

Fix crash with proxy that has no subproxies

master
Con Kolivas 8 years ago
parent
commit
a5cb533924
  1. 4
      src/generator.c

4
src/generator.c

@ -2446,9 +2446,11 @@ static void delete_proxy(ckpool_t *ckp, gdata_t *gdata, proxy_instance_t *proxy)
HASH_DELETE(sh, proxy->subproxies, subproxy); HASH_DELETE(sh, proxy->subproxies, subproxy);
mutex_unlock(&proxy->proxy_lock); mutex_unlock(&proxy->proxy_lock);
if (subproxy) {
send_stratifier_deadproxy(ckp, subproxy->id, subproxy->subid); send_stratifier_deadproxy(ckp, subproxy->id, subproxy->subid);
if (subproxy && proxy != subproxy) if (proxy != subproxy)
store_proxy(gdata, subproxy); store_proxy(gdata, subproxy);
}
} while (subproxy); } while (subproxy);
/* Recycle the proxy itself */ /* Recycle the proxy itself */

Loading…
Cancel
Save