]> granicus.if.org Git - mutt/commitdiff
Fix double-free problems related to IDN support.
authorRudy Taraschi <rudy@cae.com>
Mon, 10 Nov 2003 18:02:26 +0000 (18:02 +0000)
committerRudy Taraschi <rudy@cae.com>
Mon, 10 Nov 2003 18:02:26 +0000 (18:02 +0000)
mutt_socket.c

index 187eb4ef190a70f3b71bca5fdad3eead0e9d3a9b..b860192f17e9b3d0bac5c3374bbe0261330bd4d4 100644 (file)
@@ -483,13 +483,17 @@ int raw_socket_open (CONNECTION* conn)
 
   if ((he = gethostbyname (host_idna)) == NULL)
   {
+# ifdef HAVE_LIBIDN
     FREE (&host_idna);
+# endif
     mutt_error (_("Could not find the host \"%s\""), conn->account.host);
        
     return -1;
   }
-  
+
+# ifdef HAVE_LIBIDN
   FREE (&host_idna);
+# endif
 
   mutt_message (_("Connecting to %s..."), conn->account.host);