Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151270753
D18430.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
685 B
Referenced Files
None
Subscribers
None
D18430.diff
View Options
Index: head/usr.sbin/mountd/mountd.c
===================================================================
--- head/usr.sbin/mountd/mountd.c
+++ head/usr.sbin/mountd/mountd.c
@@ -1026,8 +1026,13 @@
syslog(LOG_ERR, "request from unknown address family");
return;
}
- lookup_failed = getnameinfo(saddr, saddr->sa_len, host, sizeof host,
- NULL, 0, 0);
+ switch (rqstp->rq_proc) {
+ case MOUNTPROC_MNT:
+ case MOUNTPROC_UMNT:
+ case MOUNTPROC_UMNTALL:
+ lookup_failed = getnameinfo(saddr, saddr->sa_len, host,
+ sizeof host, NULL, 0, 0);
+ }
getnameinfo(saddr, saddr->sa_len, numerichost,
sizeof numerichost, NULL, 0, NI_NUMERICHOST);
switch (rqstp->rq_proc) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 5:50 AM (5 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31081011
Default Alt Text
D18430.diff (685 B)
Attached To
Mode
D18430: Reduce mountd DNS queries
Attached
Detach File
Event Timeline
Log In to Comment