gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1494-g4eb8901
Date: Mon, 21 May 2012 13:15:22 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  4eb89019bb8b325da7fdc590c1194a3e9617f253 (commit)
      from  09f27ea75697d6b150a075c91b60f3756aa23816 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=4eb89019bb8b325da7fdc590c1194a3e9617f253


commit 4eb89019bb8b325da7fdc590c1194a3e9617f253
Author: Rob Savoye <address@hidden>
Date:   Mon May 21 07:15:09 2012 -0600

    don't free ans more than necessary

diff --git a/libbase/Socket.cpp b/libbase/Socket.cpp
index 6b66984..2bb3484 100644
--- a/libbase/Socket.cpp
+++ b/libbase/Socket.cpp
@@ -177,7 +177,7 @@ Socket::connect(const std::string& hostname, 
boost::uint16_t port)
                           code, gai_strerror(code));
                 return false;
             }
-            log_error(_("getaddrinfo() needed to change localhost, edit your 
/etc/host file!"));
+            log_error(_("getaddrinfo() needed to change localhost, check your 
/etc/hosts file!"));
         } else {
             log_error(_("getaddrinfo() failed with code: #%d - %s\n"),
                       code, gai_strerror(code));
@@ -253,7 +253,6 @@ Socket::connect(const std::string& hostname, 
boost::uint16_t port)
             const int err = errno;
             log_error(_("Socket creation failed: %s"), std::strerror(err));
             _socket = 0;
-            freeaddrinfo(ans);
             return false;
         }
     }
@@ -275,11 +274,9 @@ Socket::connect(const std::string& hostname, 
boost::uint16_t port)
         if (err != EINPROGRESS) {
             log_error(_("Failed to connect to socket: %s"), 
std::strerror(err));
             _socket = 0;
-            freeaddrinfo(ans);
             return false;
         }
 #else
-            freeaddrinfo(ans);
         return false;
 #endif
     }
@@ -301,8 +298,7 @@ Socket::connect(const std::string& hostname, 
boost::uint16_t port)
                  reinterpret_cast<const char*>(&on), sizeof(on));
     
     assert(_socket);
-    freeaddrinfo(ans);
-
+    
     return true;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 libbase/Socket.cpp |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]