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 "The nmh Mail Handling System".

The branch, master has been updated
       via  d6bc0d17efe54a1dd7110547aae4b1bb6e223bb7 (commit)
      from  0287c2e441fbc748cb11f96a5afd6dbdf68b0818 (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/nmh.git/commit/?id=d6bc0d17efe54a1dd7110547aae4b1bb6e223bb7


commit d6bc0d17efe54a1dd7110547aae4b1bb6e223bb7
Author: Ken Hornstein <[email protected]>
Date:   Mon Feb 6 11:31:18 2012 -0500

    Patch from Harvey Eneman: fixes problem on some systems where a free()
    would be called on non-malloc'd memory (only would happen if you had more
    than one entry in the server: line in mts.conf).

diff --git a/sbr/client.c b/sbr/client.c
index 7ae356a..7ab49a9 100644
--- a/sbr/client.c
+++ b/sbr/client.c
@@ -95,7 +95,7 @@ client (char *args, char *service, char *response, int 
len_response, int debug)
 
            if (connect(sd, ai->ai_addr, ai->ai_addrlen) == 0) {
                freeaddrinfo(res);
-               client_freelist(ap);
+               client_freelist(arguments);
                return sd;
            }
 
@@ -109,7 +109,7 @@ client (char *args, char *service, char *response, int 
len_response, int debug)
        freeaddrinfo(res);
     }
 
-    client_freelist(ap);
+    client_freelist(arguments);
     strncpy (response, "no servers available", len_response);
     return NOTOK;
 }
@@ -122,8 +122,7 @@ client (char *args, char *service, char *response, int 
len_response, int debug)
 static void
 client_freelist(char **list)
 {
-    while (*list++ != NULL)
-       free(*list);
+    free(*list);
 }
 
 

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

Summary of changes:
 sbr/client.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System

_______________________________________________
Nmh-commits mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-commits

Reply via email to