NULL SIM pointer on close -> free requires it.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 3 Jul 2000 05:53:14 +0000 (05:53 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 3 Jul 2000 05:53:14 +0000 (05:53 +0000)
lib/silcsim/silcsim.c

index 5afc108db31dec3f049f21e96a43ed0b1250643d..ab9b3433615c6923d212c040773869922626aa46 100644 (file)
@@ -108,6 +108,7 @@ int silc_sim_close(SilcSimContext *sim)
 
   /* Close the library */
   dlclose(sim->handle);
+  sim->handle = NULL;
 
   return TRUE;
 }