ASF Bugzilla – Attachment 32544 Details for
Bug 57616
AB - DNS roundrobin support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to mallock check
0001-malloc-to-xmalloc-for-error-handling.patch (text/plain), 1.04 KB, created by
Marcin Fabrykowski
on 2015-03-04 02:12:02 UTC
(
hide
)
Description:
patch to mallock check
Filename:
MIME Type:
Creator:
Marcin Fabrykowski
Created:
2015-03-04 02:12:02 UTC
Size:
1.04 KB
patch
obsolete
>From d5d2e53ade411bb0ab18f6174a1362bad4a5a938 Mon Sep 17 00:00:00 2001 >From: root <root@redraptor.ds2.agh.edu.pl> >Date: Wed, 4 Mar 2015 03:09:31 +0100 >Subject: [PATCH] malloc to xmalloc for error handling > >--- > support/ab.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/support/ab.c b/support/ab.c >index 0d936ea..01f173a 100644 >--- a/support/ab.c >+++ b/support/ab.c >@@ -1776,13 +1776,13 @@ static void test(void) > "apr_sockaddr_info_get() for %s", connecthost); > apr_err(buf, rv); > } >- destsa_pool = malloc(sizeof(struct sockaddr_pool)); >+ destsa_pool = xmalloc(sizeof(struct sockaddr_pool)); > destsa_pool->val = destsa; > { > struct sockaddr_pool* head = destsa_pool; > while(destsa_pool->val->next) > { >- destsa_pool->next = malloc(sizeof(struct sockaddr_pool)); >+ destsa_pool->next = xmalloc(sizeof(struct sockaddr_pool)); > destsa_pool->next->val = destsa_pool->val->next; > destsa_pool = destsa_pool->next; > } >-- >2.0.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57616
:
32504
|
32544
|
37017