[or-cvs] freeing is not the same as setting to null

arma at seul.org arma at seul.org
Wed Mar 22 00:03:53 UTC 2006


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

Modified Files:
	config.c 
Log Message:
freeing is not the same as setting to null


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.541
retrieving revision 1.542
diff -u -p -d -r1.541 -r1.542
--- config.c	21 Mar 2006 23:27:43 -0000	1.541
+++ config.c	22 Mar 2006 00:03:51 -0000	1.542
@@ -4036,6 +4036,7 @@ or_state_validate(or_state_t *old_state,
                    "Enabling workaround to choose working entry guards.",
                    state->TorVersion);
         config_free_lines(state->EntryGuards);
+        state->EntryGuards = NULL;
       }
     }
   }



More information about the tor-commits mailing list