Blame SOURCES/glibc-rh1579727-1.patch

147e83
commit f178e59fa5eefbbd37fde040ae8334aa5c857ee1
147e83
Author: Andreas Schwab <schwab@suse.de>
147e83
Date:   Tue Mar 27 12:16:11 2018 +0200
147e83
147e83
    Fix crash in resolver on memory allocation failure (bug 23005)
147e83
147e83
diff --git a/resolv/res_send.c b/resolv/res_send.c
147e83
index b396aae03c9eeb6e..01e4da4188b63d39 100644
147e83
--- a/resolv/res_send.c
147e83
+++ b/resolv/res_send.c
147e83
@@ -471,6 +471,11 @@ __res_context_send (struct resolv_context *ctx,
147e83
 					'\0',
147e83
 					sizeof (struct sockaddr_in6)
147e83
 					- sizeof (struct sockaddr_in));
147e83
+			else
147e83
+			  {
147e83
+			    __set_errno (ENOMEM);
147e83
+			    return -1;
147e83
+			  }
147e83
 		}
147e83
 		EXT(statp).nscount = statp->nscount;
147e83
 	}