patch for tinc-0.3.1

Hans Bayle hansb at direct.a2000.nl
Wed Oct 27 22:46:45 CEST 1999


(sorry for using this list, but I cannot reach zarq directly)
-------------- next part --------------
Only in tinc-0.3.1p: Makefile
Only in tinc-0.3.1p/cipher: Makefile
Only in tinc-0.3.1p/cipher/blowfish: Makefile
Only in tinc-0.3.1p/cipher/idea: Makefile
Only in tinc-0.3.1p: config.cache
Only in tinc-0.3.1p: config.h
Only in tinc-0.3.1p: config.log
Only in tinc-0.3.1p: config.status
Only in tinc-0.3.1p/doc: Makefile
Only in tinc-0.3.1p/lib: Makefile
Only in tinc-0.3.1p: libtool
Only in tinc-0.3.1p/m4: Makefile
Only in tinc-0.3.1p/src: Makefile
diff -ur tinc-0.3.1/src/net.c tinc-0.3.1p/src/net.c
--- tinc-0.3.1/src/net.c	Wed Oct 20 21:38:19 1999
+++ tinc-0.3.1p/src/net.c	Tue Oct 26 22:44:58 1999
@@ -209,6 +209,14 @@
       p = next;
     }
 
+  /* adjust to last element left in queue, add_queue() needs tail pointer */
+  if (prev)
+      pq->tail = prev;
+  else {
+      pq->tail = NULL;
+      pq->head = NULL;
+  }
+
   if(debug_lvl > 3)
     syslog(LOG_DEBUG, "queue flushed");
 }
@@ -710,7 +718,7 @@
     {
       if(p->status.meta)
 	FD_SET(p->meta_socket, fs);
-      if(p->status.active)
+      if(p->status.dataopen)
 	FD_SET(p->socket, fs);
     }
 
Only in tinc-0.3.1p: stamp-h


More information about the Tinc mailing list