Skip to content

Commit

Permalink
pop3: use array interface rather than internal buffer to access data
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Carmody <phil@dovecot.fi>
  • Loading branch information
Phil Carmody authored and sirainen committed Aug 30, 2018
1 parent b8294e0 commit 9d1c335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pop3/pop3-client.c
Expand Up @@ -224,12 +224,12 @@ static int read_mailbox(struct client *client, uint32_t *failed_uid_r)

client->trans = t;
client->message_sizes =
buffer_free_without_data(&message_sizes.arr.buffer);
array_free_without_data(&message_sizes);
if (array_is_created(&msgnum_to_seq_map)) {
client->msgnum_to_seq_map_count =
array_count(&msgnum_to_seq_map);
client->msgnum_to_seq_map =
buffer_free_without_data(&msgnum_to_seq_map.arr.buffer);
array_free_without_data(&msgnum_to_seq_map);
}
return 1;
}
Expand Down

0 comments on commit 9d1c335

Please sign in to comment.