Selaa lähdekoodia

Merge branch 'rebind-ip-fixes' into maint

* rebind-ip-fixes:
  * Update docs
  * Fix DNS/Server sockets getting stuck when its socket was closed via fatal()
Bryan Drewery 16 vuotta sitten
vanhempi
commit
c8b9530c71
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 1 0
      doc/UPDATES
  2. 5 0
      src/dccutil.c

+ 1 - 0
doc/UPDATES

@@ -8,6 +8,7 @@
 * Fix bot getting killed on OpenBSD 4.7 on startup
 * Ignore 'pflog' interfaces in promisc
 * Fix buffer overflow in DCC
+* Fix problems with changing IP
 
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes

+ 5 - 0
src/dccutil.c

@@ -590,6 +590,11 @@ lostdcc(int n)
 
   if (n == uplink_idx)
     uplink_idx = -1;
+  else if (n == dns_idx)
+    dns_idx = -1;
+  else if (n == servidx)
+    servidx = -1;
+
 
   if (dcc[n].type && dcc[n].type->kill)
     dcc[n].type->kill(n, dcc[n].u.other);