Skip to content

Commit

Permalink
lib-index: Remove #if'ed out code
Browse files Browse the repository at this point in the history
Originally added by 0b2d462. Possibly
accidentally.
  • Loading branch information
sirainen authored and cmouse committed Aug 7, 2018
1 parent 9fbab16 commit a098ab8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lib-index/mail-index-sync-ext.c
Expand Up @@ -616,14 +616,9 @@ int mail_index_sync_ext_hdr_update(struct mail_index_sync_map_ctx *ctx,

ext = array_idx(&map->extensions, ctx->cur_ext_map_idx);
if (offset + size > ext->hdr_size) {
#if 1
mail_index_sync_set_corrupted(ctx,
"Extension header update points outside header size");
return -1;
#else
size = offset > ext->hdr_size ? 0 :
ext->hdr_size - offset;
#endif
}

buffer_write(map->hdr_copy_buf, ext->hdr_offset + offset, data, size);
Expand Down

0 comments on commit a098ab8

Please sign in to comment.