Browse Source

Fix crash with proxy that has no subproxies

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

8
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);
mutex_unlock(&proxy->proxy_lock);
send_stratifier_deadproxy(ckp, subproxy->id, subproxy->subid);
if (subproxy && proxy != subproxy)
store_proxy(gdata, subproxy);
if (subproxy) {
send_stratifier_deadproxy(ckp, subproxy->id, subproxy->subid);
if (proxy != subproxy)
store_proxy(gdata, subproxy);
}
} while (subproxy);
/* Recycle the proxy itself */

Loading…
Cancel
Save