} else if (name[0] == '!' && name == ldap_attr) {
/* !ldapAttr */
name = "";
+ i_assert(ldap_attr[0] == '!');
ldap_attr++;
field->skip = TRUE;
}
{
if (ctx->queue_fd == -1)
index_queue_connect(ctx);
+ i_assert(ctx->queue_fd != -1);
T_BEGIN {
string_t *str = t_str_new(256);
if (conn->fd == -1) {
if (auth_master_connect(conn) < 0)
return -1;
+ i_assert(conn->fd != -1);
}
auth_master_set_io(conn);
_file->output = o_stream_create_error_str(errno, "%s",
fs_file_last_error(_file));
} else {
+ i_assert(file->fd != -1);
_file->output = o_stream_create_fd_file(file->fd,
(uoff_t)-1, FALSE);
}
if (mbox_seek_to_end(ctx, &ctx->append_offset) < 0)
return -1;
+ i_assert(mbox->mbox_fd != -1);
ctx->output = o_stream_create_fd_file(mbox->mbox_fd,
ctx->append_offset,
FALSE);
}
}
if (lock.fd != -1) {
+ i_assert(lock.lock != NULL);
+
i_unlink(lock.path);
i_close_fd(&lock.fd);
file_lock_free(&lock.lock);
file_lock_wait_end(dotlock->path);
if (ret > 0) {
+ i_assert(lock_info.fd != -1);
if (fstat(lock_info.fd, &st) < 0) {
i_error("fstat(%s) failed: %m", lock_path);
ret = -1;
for (i = 0; i < iov_count; i++) {
if (tstream->buf->used + iov[i].iov_len > tstream->max_mem_size) {
if (o_stream_temp_move_to_fd(tstream) == 0) {
+ i_assert(tstream->fd != -1);
return o_stream_temp_fd_sendv(tstream, iov+i,
iov_count-i);
}