~vorlon/ubuntu/natty/eglibc/multiarch

« back to all changes in this revision

Viewing changes to sysdeps/mach/hurd/sendmsg.c

  • Committer: Steve Langasek
  • Date: 2011-02-18 21:18:44 UTC
  • mfrom: (103.1.7 eglibc)
  • Revision ID: steve.langasek@linaro.org-20110218211844-lodmi8b1qhyq3f3x
Tags: 2.13~pre1-0ubuntu1+multiarch.1
merge from natty

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
             and talk to it with the ifsock protocol.  */
110
110
          file_t file = __file_name_lookup (addr->sun_path, 0, 0);
111
111
          if (file == MACH_PORT_NULL)
112
 
            return -1;
 
112
            {
 
113
              if (dealloc)
 
114
                __vm_deallocate (__mach_task_self (), data.addr, len);
 
115
              return -1;
 
116
            }
113
117
          err = __ifsock_getsockaddr (file, &aport);
114
118
          __mach_port_deallocate (__mach_task_self (), file);
115
119
          if (err == MIG_BAD_ID || err == EOPNOTSUPP)
116
120
            /* The file did not grok the ifsock protocol.  */
117
121
            err = ENOTSOCK;
118
122
          if (err)
119
 
            return __hurd_fail (err);
 
123
            {
 
124
              if (dealloc)
 
125
                __vm_deallocate (__mach_task_self (), data.addr, len);
 
126
              return __hurd_fail (err);
 
127
            }
120
128
        }
121
129
      else
122
130
        err = EIEIO;