~ubuntu-branches/ubuntu/oneiric/nfs-utils/oneiric

« back to all changes in this revision

Viewing changes to utils/mountd/mount_dispatch.c

  • Committer: Steve Langasek
  • Date: 2010-06-04 09:53:57 UTC
  • mfrom: (14.1.5 sid)
  • Revision ID: vorlon@debian.org-20100604095357-zbu3na972v3nmgvg
mergeĀ versionĀ 1:1.2.2-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
{
71
71
        union mountd_arguments  argument;
72
72
        union mountd_results    result;
 
73
 
73
74
#ifdef HAVE_TCP_WRAPPER
74
 
        struct sockaddr_in *sin = nfs_getrpccaller_in(transp);
75
 
 
76
75
        /* remote host authorization check */
77
 
        if (sin->sin_family == AF_INET &&
78
 
            !check_default("mountd", sin, rqstp->rq_proc, MOUNTPROG)) {
 
76
        if (!check_default("mountd", nfs_getrpccaller(transp), MOUNTPROG)) {
79
77
                svcerr_auth (transp, AUTH_FAILED);
80
78
                return;
81
79
        }