[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix a seg fault if we ask an authdirserver for a descriptor...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dirserv.c 
Log Message:
fix a seg fault if we ask an authdirserver for a descriptor by
fingerprint but he doesn't know about him.


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.225
retrieving revision 1.226
diff -u -d -r1.225 -r1.226
--- dirserv.c	12 Sep 2005 21:42:59 -0000	1.225
+++ dirserv.c	13 Sep 2005 01:20:26 -0000	1.226
@@ -1290,7 +1290,7 @@
            smartlist_add(descs_out, router_get_my_routerinfo());
          } else {
            routerinfo_t *ri = router_get_by_digest(d);
-           if (d)
+           if (ri)
              smartlist_add(descs_out,ri);
          }
        });