arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1579727-2.patch

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