Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169577737
D59277.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
973 B
Referenced Files
None
Subscribers
None
D59277.diff
View Options
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1315,11 +1315,13 @@
if (sep->se_rpc) {
u_int i;
socklen_t len = sep->se_ctrladdr_size;
- struct netconfig *netid, *netid2 = NULL;
+ struct netconfig *netid;
+ struct netbuf nbuf;
#ifdef INET6
+ struct netconfig *netid2 = NULL;
struct sockaddr_in sock;
+ struct netbuf nbuf2;
#endif
- struct netbuf nbuf, nbuf2;
if (getsockname(sep->se_fd,
(struct sockaddr*)&sep->se_ctrladdr, &len) < 0){
@@ -1360,10 +1362,12 @@
for (i = sep->se_rpc_lowvers; i <= sep->se_rpc_highvers; i++) {
rpcb_unset(sep->se_rpc_prog, i, netid);
rpcb_set(sep->se_rpc_prog, i, netid, &nbuf);
+#ifdef INET6
if (netid2) {
rpcb_unset(sep->se_rpc_prog, i, netid2);
rpcb_set(sep->se_rpc_prog, i, netid2, &nbuf2);
}
+#endif
}
}
if (sep->se_socktype == SOCK_STREAM)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 11:27 PM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37842862
Default Alt Text
D59277.diff (973 B)
Attached To
Mode
D59277: inetd: only declare and use the mapped-address netconfig under INET6
Attached
Detach File
Event Timeline
Log In to Comment