olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1579727-2.patch

00db10
commit dae6c43c33ed2d29d6d7089958ad707759a48517
00db10
Author: Andreas Schwab <schwab@suse.de>
00db10
Date:   Thu May 17 13:04:46 2018 +0200
00db10
00db10
    Remove unneeded setting of errno after malloc failure
00db10
    
00db10
    The errno value has alread been set by malloc.
00db10
00db10
diff --git a/resolv/res_send.c b/resolv/res_send.c
00db10
index 01e4da4188b63d39..478d542419566574 100644
00db10
--- a/resolv/res_send.c
00db10
+++ b/resolv/res_send.c
00db10
@@ -472,10 +472,7 @@ __res_context_send (struct resolv_context *ctx,
00db10
 					sizeof (struct sockaddr_in6)
00db10
 					- sizeof (struct sockaddr_in));
00db10
 			else
00db10
-			  {
00db10
-			    __set_errno (ENOMEM);
00db10
-			    return -1;
00db10
-			  }
00db10
+				return -1;
00db10
 		}
00db10
 		EXT(statp).nscount = statp->nscount;
00db10
 	}