]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - raw.c
Tell the truth about DNS lookups in the Event Log.
[PuTTY.git] / raw.c
diff --git a/raw.c b/raw.c
index 6262ed8994acc7a6a583addd71d924947ec11f3b..60fbbf65e2d74b74d80d6e438639a75b7c0d6d64 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -154,16 +154,8 @@ static const char *raw_init(void *frontend_handle, void **backend_handle,
     /*
      * Try to find host.
      */
-    {
-       char *buf;
-       buf = dupprintf("Looking up host \"%s\"%s", host,
-                       (addressfamily == ADDRTYPE_IPV4 ? " (IPv4)" :
-                        (addressfamily == ADDRTYPE_IPV6 ? " (IPv6)" :
-                         "")));
-       logevent(raw->frontend, buf);
-       sfree(buf);
-    }
-    addr = name_lookup(host, port, realhost, conf, addressfamily);
+    addr = name_lookup(host, port, realhost, conf, addressfamily,
+                       raw->frontend, "main connection");
     if ((err = sk_addr_error(addr)) != NULL) {
        sk_addr_free(addr);
        return err;