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