This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-400-gdae6c43


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 "GNU C Library master sources".

The branch, master has been updated
       via  dae6c43c33ed2d29d6d7089958ad707759a48517 (commit)
      from  0068c08588389c4586f0481455bb2af9b44cee4e (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=dae6c43c33ed2d29d6d7089958ad707759a48517

commit dae6c43c33ed2d29d6d7089958ad707759a48517
Author: Andreas Schwab <schwab@suse.de>
Date:   Thu May 17 13:04:46 2018 +0200

    Remove unneeded setting of errno after malloc failure
    
    The errno value has alread been set by malloc.

diff --git a/ChangeLog b/ChangeLog
index fc31a45..066c213 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-17  Andreas Schwab  <schwab@suse.de>
+
+	* resolv/res_send.c (__res_context_send): Don't set errno when
+	returing error after malloc failure.
+
 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* nptl/allocatestack.c (allocate_stack): Remove the
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 9e95417..947ebf5 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -472,10 +472,7 @@ __res_context_send (struct resolv_context *ctx,
 					sizeof (struct sockaddr_in6)
 					- sizeof (struct sockaddr_in));
 			else
-			  {
-			    __set_errno (ENOMEM);
-			    return -1;
-			  }
+				return -1;
 		}
 		EXT(statp).nscount = statp->nscount;
 	}

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

Summary of changes:
 ChangeLog         |    5 +++++
 resolv/res_send.c |    5 +----
 2 files changed, 6 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]