From: Pekka Riikonen Date: Mon, 3 Jul 2000 05:53:14 +0000 (+0000) Subject: NULL SIM pointer on close -> free requires it. X-Git-Tag: SILC.0.1~534 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=89815db5540f4c3ea6cf7724a43fbb6009735d46;p=silc.git NULL SIM pointer on close -> free requires it. --- diff --git a/lib/silcsim/silcsim.c b/lib/silcsim/silcsim.c index 5afc108d..ab9b3433 100644 --- a/lib/silcsim/silcsim.c +++ b/lib/silcsim/silcsim.c @@ -108,6 +108,7 @@ int silc_sim_close(SilcSimContext *sim) /* Close the library */ dlclose(sim->handle); + sim->handle = NULL; return TRUE; }