~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/imap-urlauth/imap-urlauth.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2015-05-24 15:01:19 UTC
  • mto: (4.1.53 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20150524150119-hsh6cbr1fqseapga
Tags: upstream-2.2.18
ImportĀ upstreamĀ versionĀ 2.2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
                i_error("Peer's credentials (uid=%ld) do not match "
144
144
                        "the user that logged in (uid=%ld).",
145
145
                        (long)cred.uid, (long)reply.uid);
146
 
                (void)write(client->fd, msg, strlen(msg));
 
146
                if (write(client->fd, msg, strlen(msg)) < 0) {
 
147
                        /* ignored */
 
148
                }
147
149
                net_disconnect(client->fd);
148
150
                return;
149
151
        }
159
161
                                const char *errormsg ATTR_UNUSED)
160
162
{
161
163
        const char *msg = "NO\n";
162
 
        (void)write(client->fd, msg, strlen(msg));
 
164
        if (write(client->fd, msg, strlen(msg)) < 0) {
 
165
                /* ignored */
 
166
        }
163
167
}
164
168
 
165
169
static void client_connected(struct master_service_connection *conn)