Fixed double free.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 16 Dec 2002 17:39:34 +0000 (17:39 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 16 Dec 2002 17:39:34 +0000 (17:39 +0000)
lib/silcutil/silcsockconn.c

index 3ae1a1e8e0dbec5053f5dc2de51de5434ec9ad82..6817c5daea20f98150f7c52b3e9f4a696bc97e3e 100644 (file)
@@ -192,8 +192,8 @@ SILC_TASK_CALLBACK(silc_socket_host_lookup_finish)
      is cancelled also and we will not call the final callback. */
   if (lookup->sock->users == 1) {
     SILC_LOG_DEBUG(("Async host lookup was cancelled"));
-    silc_free(lookup);
     silc_socket_free(lookup->sock);
+    silc_free(lookup);
     return;
   }