Преглед на файлове

Null pointer bug appears fixed... testing again at large scale.

Adam Ierymenko преди 9 години
родител
ревизия
7382c328da
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      node/Topology.hpp

+ 1 - 1
node/Topology.hpp

@@ -237,7 +237,7 @@ public:
 		while (i.next(a,p)) {
 		while (i.next(a,p)) {
 #ifdef ZT_TRACE
 #ifdef ZT_TRACE
 			if (!(*p)) {
 			if (!(*p)) {
-				fprintf(stderr,"eachPeer() caught NULL peer for %s",a->toString().c_str());
+				fprintf(stderr,"FATAL BUG: eachPeer() caught NULL peer for %s -- peer pointers in Topology should NEVER be NULL",a->toString().c_str());
 				abort();
 				abort();
 			}
 			}
 #endif
 #endif