1 --- libtirpc-1.0.1.orig/src/svc.c 2015-10-30 16:15:14.000000000 +0100
2 +++ libtirpc-1.0.1/src/svc.c 2015-11-29 16:39:24.994903493 +0100
3 @@ -99,7 +99,7 @@ xprt_register (xprt)
5 __svc_xports = (SVCXPRT **) calloc (_rpc_dtablesize(), sizeof (SVCXPRT *));
6 if (__svc_xports == NULL)
10 if (sock < _rpc_dtablesize())
12 @@ -120,14 +120,14 @@ xprt_register (xprt)
13 svc_pollfd[i].fd = sock;
14 svc_pollfd[i].events = (POLLIN | POLLPRI |
15 POLLRDNORM | POLLRDBAND);
20 new_svc_pollfd = (struct pollfd *) realloc (svc_pollfd,
21 sizeof (struct pollfd)
22 * (svc_max_pollfd + 1));
23 if (new_svc_pollfd == NULL) /* Out of memory */
26 svc_pollfd = new_svc_pollfd;
29 @@ -135,6 +135,7 @@ xprt_register (xprt)
30 svc_pollfd[svc_max_pollfd - 1].events = (POLLIN | POLLPRI |
31 POLLRDNORM | POLLRDBAND);
34 rwlock_unlock (&svc_fd_lock);