14 lines
518 B
Diff
14 lines
518 B
Diff
|
Index: libtirpc-0.1.7/src/svc_vc.c
|
||
|
===================================================================
|
||
|
--- libtirpc-0.1.7.orig/src/svc_vc.c
|
||
|
+++ libtirpc-0.1.7/src/svc_vc.c
|
||
|
@@ -231,7 +231,7 @@ svc_fd_create(fd, sendsize, recvsize)
|
||
|
if (ss.ss_family == AF_INET) {
|
||
|
map_ipv4_to_ipv6((struct sockaddr_in *)&ss, &sin6);
|
||
|
} else {
|
||
|
- memcpy(&sin6, &ss, sizeof(ss));
|
||
|
+ memcpy(&sin6, &ss, sizeof(sin6));
|
||
|
}
|
||
|
ret->xp_rtaddr.maxlen = ret->xp_rtaddr.len = sizeof(ss);
|
||
|
ret->xp_rtaddr.buf = mem_alloc((size_t)sizeof(ss));
|