]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/glibc/glibc-rh1159167.patch
dhcpcd: fix delay after dhcp down.
[ipfire-2.x.git] / src / patches / glibc / glibc-rh1159167.patch
1 diff --git a/sunrpc/svc.c b/sunrpc/svc.c
2 index ccf0902..30c3a93 100644
3 --- a/sunrpc/svc.c
4 +++ b/sunrpc/svc.c
5 @@ -97,8 +97,8 @@ xprt_register (SVCXPRT *xprt)
6
7 if (xports == NULL)
8 {
9 - xports = (SVCXPRT **) malloc (_rpc_dtablesize () * sizeof (SVCXPRT *));
10 - if (xports == NULL) /* DonĀ“t add handle */
11 + xports = (SVCXPRT **) calloc (_rpc_dtablesize (), sizeof (SVCXPRT *));
12 + if (xports == NULL) /* Don't add handle */
13 return;
14 }
15